We don't bite newbies here... much | |
PerlMonks |
Re^2: substitute instead global matching for nested matchesby utku (Acolyte) |
on Mar 20, 2012 at 13:56 UTC ( [id://960575]=note: print w/replies, xml ) | Need Help?? |
Thanks for the first regexp fix, your improvement supports more input variations in some way.
The second one is also handy but regexp is long, ie. you use match pattern \S+\s+\S+\s+ twice. I had thought it is reducible to one matcher. However it does its job also.
I really appreciate your help it has given me new ideas, especially with the first regexp tip.
In Section
Seekers of Perl Wisdom
|
|