in reply to Re: This regular expression has me stumped
in thread This regular expression has me stumped
No need for the; $1 in map { m!/([\w\.\-]+)\W*$!; $1 }
since a match in list context returns the captured substrings and the block of a map is in list context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A no-op in this map block: was Re^2: This regular expression has me stumped
by tachyon-II (Chaplain) on May 02, 2008 at 09:17 UTC |