in reply to Re: Swap Input lines
in thread Swap Input lines

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:
Jean-Paul Goude = 22-22 Marcel Duchamp = One-Two-Two Victoire Passage = 118_218 Philip K. Dick = 123-456

Replies are listed 'Best First'.
Re^3: Swap Input lines
by trizen (Hermit) on Apr 19, 2012 at 10:20 UTC
    You are right. I misunderstood the OPs problem.