John Livermore <jo************@nospm-inginix.com> writes:
What regular expression would return only...
id="Table3"
from the string...
height="100%" id="Table3" cellspacing="0" cellpadding="0" width="100%"
The simplest (generalizable) regular expression would be
/id="[^"]*"/
I also tried...
id=".*?"
but that didn't find anything.
Suprising, depending on what browser you tested in. It should work
in a browser understanding ECMAScript v3 Regular Expressions.
It works for me in Opera 7 and IE 6.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'