On Sat, Feb 11, 2006 at 03:05:23PM -0700, Jeff Schroeder wrote: > > But how do I get a '2' into the middle of two match variables? > > Enclose the sub-pattern numbers in curly braces: > > s/([NESW]) ([NS][EW])/${1}2${2}/; Oh, doh! Of course... Thank you.