We don't bite newbies here... much | |
PerlMonks |
Re: Regex funby Anonymous Monk |
on Dec 15, 2009 at 14:33 UTC ( [id://812883]=note: print w/replies, xml ) | Need Help?? |
Something like this seems to work for printing the next \d+ characters after a numerical match:
/(\d+)(?{$' =~ m!(.{$1})!; print "$1\n"})/
Is this really the road you want to go down?
In Section
Seekers of Perl Wisdom
|
|