in reply to Regular expression * vs +
In addition to moritz' hint, you could look into the matching process by issuing (e.g.):
... my $txt = '-UK 123 123-UK 123-UK 123-UK'; print "|$1|\n" while $txt =~ /((?:\d+-UK\W?)*)/g; ...
Regards
mwa
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regular expression * vs +
by ww (Archbishop) on May 20, 2008 at 11:58 UTC | |
by mwah (Hermit) on May 20, 2008 at 13:22 UTC |
In Section
Seekers of Perl Wisdom