Do you know where your variables are? | |
PerlMonks |
Re: Regular Expression Matching Issueby toolic (Bishop) |
on Jan 02, 2008 at 19:12 UTC ( [id://660039]=note: print w/replies, xml ) | Need Help?? |
One reason the regular expression does not match is because you do not have the string "movie" in your test.txt file. There may be other reasons, but I would start with that.
Also, you should first check if the regex matched before trying to use $1. There are plenty of good HTML parsers available; why do you want to re-invent that wheel?
In Section
Seekers of Perl Wisdom
|
|