http://www.perlmonks.org?node_id=874586


in reply to Re^5: Regular Expression Translation Help!
in thread Regular Expression Translation Help!

and if i'm reading the regex context correctly, if there's no match at all, then the string sent for matching is returned intact without changes.
my personal preference would be for a code block that is a bit clearer, as combining the search & replace regex and the trinary conditional operator makes it a bit confusing.
the hardest line to type correctly is: stty erase ^H
  • Comment on Re^6: Regular Expression Translation Help!