Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Unfortunately that does not match. If i modify like this (remove parens):next if $string !~ /<b>(\w|\.+\.zip)<\/b>/; &do_something_with($1);
it matches, but $1 isn't available.next if $string !~ /<b>\w|\.+\.zip<\/b>/; &do_something_with($1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RegEx, $1, problem
by ikegami (Patriarch) on Oct 28, 2004 at 14:52 UTC | |
by Anonymous Monk on Oct 28, 2004 at 14:55 UTC | |
|
•Re: RegEx, $1, problem
by merlyn (Sage) on Oct 28, 2004 at 14:48 UTC | |
by ikegami (Patriarch) on Oct 28, 2004 at 14:56 UTC | |
by Anonymous Monk on Oct 28, 2004 at 14:54 UTC | |
|
Re: RegEx, $1, problem
by borisz (Canon) on Oct 28, 2004 at 15:04 UTC | |
|
Re: RegEx, $1, problem
by Happy-the-monk (Canon) on Oct 28, 2004 at 14:52 UTC | |
by ikegami (Patriarch) on Oct 28, 2004 at 15:03 UTC |