Keep It Simple, Stupid | |
PerlMonks |
Re: Regex Question in Perlby AR (Friar) |
on Dec 22, 2010 at 18:33 UTC ( [id://878628]=note: print w/replies, xml ) | Need Help?? |
Hi mmittiga, You're using the lazy modifier to your .*. When the regex engine gets to this point, it doesn't attempt to match anything. If you know account numbers are all digits, try changing the line to: if ( $page2 =~ m/Account number ([\d]+)/g ) {
In Section
Seekers of Perl Wisdom
|
|