The stupid question is the question not asked | |
PerlMonks |
Re^2: Swap Input linesby brx (Pilgrim) |
on Apr 19, 2012 at 10:09 UTC ( [id://965902]=note: print w/replies, xml ) | Need Help?? |
This is a detail, but this regex /^([a-z][a-z\s]*[a-z])(\W+)(\d[\d-]*\d)$/i is too specific. Input file contains lines with "x=y" format, so we must only search for "=" -- see jwkrahn's contribution: Re: Swap Input lines. Here some examples where this regex doesn't match:
In Section
Seekers of Perl Wisdom
|
|