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*)\/\">/
If the text is in $_ then that should be: $_ =~ m|popular title searches:</p><ol><li><a HREF="/title/tt(\d*)/">| If you are trying to store the contents of $1 into $data2 then: my ($data2) = m|popular title searches:</p><ol><li><a HREF="/title/tt(\d+)/">| John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>