>Given this in $_ ><p>Most popular title searches:</p><ol><li><a >HREF="/title/tt0244365/">"Enterprise" (2001)</a></li>" > >why would this regex not put digits in $1 ? > >$data2 =~ /popular title searches:<\/p><ol><li><a >HREF=\"\/title\/tt(\d*)\/\">/ >
Hi, Snip--- $data2='<p>Most popular title searches:</p><ol><li><a HREF="/title/tt0244365/">"Enterprise" (2001)</a></li>"'; $data2 =~ /popular title searches:<\/p><ol><li><a HREF=\"\/title\/tt(\d*)\/\">/; print $1; endSnip--- prints 0244365 If that's what you are looking for. If you realy have the html in $_, why do you bind $data2 to the regex? That way you try to find [regex] in $data2. HTH, wolf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>