|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: New to perl and regexby Athanasius (Vicar) |
| on Nov 19, 2012 at 02:15 UTC ( #1004468=note: print w/ replies, xml ) | Need Help?? |
|
The problem description specifies “at least 1 or more white space” between the last word and the integer, but the regex has \s* (which is zero or more). This should be \s+ (one or more). Apart from that, it’s difficult to offer advice without more information. Specifically, how is the code failing? As Kenosis says, please provide some sample data (along with the desired output). Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||