in reply to Re^2: Swap foo and bar in text?
in thread Swap foo and bar in text?

the real substrings could be anything

Indeed, which is why I removed the quote meta code from the example code before posting it - anything could include regular expressions which don't work so well when quoted.

True laziness is hard work

Replies are listed 'Best First'.
Re^4: Swap foo and bar in text?
by Jim (Curate) on Apr 20, 2012 at 15:51 UTC

    I don't understand what you're saying. Why did you remove quotemeta? Isn't it necessary as a precaution?

    Never mind. I figured out what you're saying.

    Jim