in reply to Capture groups
You can probably use the regex match operator "=~":
if (my @match = $text =~ /([A-Za-z\s]*)([0-9]{1,2})[%])/) { # do stuff here. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capture groups
by wardy3 (Scribe) on Mar 04, 2008 at 23:57 UTC | |
by ww (Archbishop) on Mar 05, 2008 at 12:33 UTC | |
|
Re^2: Capture groups
by doom (Deacon) on Mar 05, 2008 at 02:57 UTC |