xafwodahs has asked for the wisdom of the Perl Monks concerning the following question:
and I want a single regex that grabs all the number characters between the spaces. So, in other words, I want an array like [2, 22, 222] from:.$x = "a1aa11 b2bb22bbb222 c3cc33";
What would your wisdom suggest?(@nums) = $x =~ /<something here>/<modifiers here>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex for multiple capture within boundary
by ikegami (Patriarch) on Jul 14, 2006 at 19:57 UTC | |
by johngg (Canon) on Jul 16, 2006 at 22:14 UTC | |
by ikegami (Patriarch) on Jul 17, 2006 at 01:28 UTC | |
|
Re: regex for multiple capture within boundary
by Ieronim (Friar) on Jul 14, 2006 at 20:05 UTC | |
by swkronenfeld (Hermit) on Jul 14, 2006 at 21:38 UTC | |
|
Re: regex for multiple capture within boundary
by jwkrahn (Abbot) on Jul 14, 2006 at 20:16 UTC | |
|
Re: regex for multiple capture within boundary
by Sidhekin (Priest) on Jul 14, 2006 at 21:58 UTC | |
by ikegami (Patriarch) on Jul 14, 2006 at 22:10 UTC | |
by ikegami (Patriarch) on Jul 14, 2006 at 23:58 UTC |