<th>Prêmio</th>
<td colspan="11">
<div class="res"><img class="r1" src="img/x.gif" alt="Madeira" title="Madeira" />215 | <img class="r2" src="img/x.gif" alt="Barro" title="Barro" />193 | <img class="r3" src="img/x.gif" alt="Ferro" title="Ferro" />192 | <img class="r4" src="img/x.gif" alt="Cereal" title="Cereal" />202</div><div class="carry"><img class="car" src="img/x.gif" alt="carregamento" title="carregamento" />802/1800</div></td></tr></tbody></table><table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
J'essaie d'obtenir "802/1800", mais ça me rend fou. si je l'utilise:Javascript REGEX
var myregexp = /title="carregamento"/;
cela fonctionne
mais passer à l'étape suivante qui est:
var myregexp = /title="carregamento" \/>/
déjà me returs nulle.
var myregexp = /title="carregamento" \/>/;
var match = myregexp.exec(document.documentElement.innerHTML);
FM_log(7,"match="+match);
if (match != null)
resultado.push(match[1]);
Cela marche pour moi .. Faites-vous cela dans YQL ou dans un tag 'CDATA' ou quelque chose? L'expression fonctionne également sur [RegexPal] (http://regexpal.com) – sirhc
Non, je ne le suis pas. Je ne travaille toujours pas ici. – FernandoSBS