in reply to Re^2: How to do regex backreferences within $variable replacement text?
in thread How to do regex backreferences within $variable replacement text?

This simply does not work!

Replace the search text with "There's more than one way to do it (more or less than one)." and you'll see what I mean.

you don't do any backreferencing but a simple replacement with the first strings found.

$\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print
  • Comment on Re^3: How to do regex backreferences within $variable replacement text?
  • Download Code