in reply to Re: Re: Drop middle part in a substitution
in thread Drop middle part in a substitution

Two periods should not throw it off: the characters to be discarded were guaranteed not to include any periods, so the greedy match is appropriate.

As for newlines in filenames: I definitely didn't think of that.


The PerlMonk tr/// Advocate
  • Comment on Re^3: Drop middle part in a substitution