in reply to RegEx, $1, problem
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RegEx, $1, problem
by ikegami (Patriarch) on Oct 28, 2004 at 14:56 UTC | |
|
Re^2: RegEx, $1, problem
by Anonymous Monk on Oct 28, 2004 at 14:54 UTC |