in reply to Re: Capture groups
in thread Capture groups
The regex above will capture trailing spaces in the $1 variable ([A-Za-z\s]*). It's probably easier to just get rid of them after the match, with $match[0] =~ s/\s+$//; otherwise you'll need a fancier regex :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Capture groups
by ww (Archbishop) on Mar 05, 2008 at 12:33 UTC |