in reply to Re: RegEx Headaches
in thread RegEx Headaches
Hmmm, interesting. Now I've got:
DB<23> x $_ 0 'ActionLogs.1.2.3.4.5.6.7.8.9.xml' DB<24> x /(\d+\.)/g 0 1. 1 2. 2 3. 3 4. 4 5. 5 6. 6 7. 7 8. 8 9.
but:
DB<25> x /(\d+\.)+/g 0 9.
Can anyone tell me why the quantifier makes it match only the last group?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: RegEx Headaches
by kennethk (Abbot) on Jun 19, 2013 at 19:16 UTC |
In Section
Seekers of Perl Wisdom