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 reply to Re: Regex Question in Perl
by AR
in thread Regex Question in Perl
by mmittiga17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |