On Dec 19, 2003, at 12:47 PM, Jeremy Mann wrote:

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*)\/\">/

Because the regex targets the $data2 variable instead of $_, possibly. I don't seen anything wrong with the expression, if that's what you're asking though.


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to