You have to have a successful match to have a $1.next unless $string =~ /<b>(\w|\.+\.zip)<\/b>/; &do_something_with($1);
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: RegEx, $1, problem
by merlyn
in thread RegEx, $1, problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |