in reply to Re^5: Substitution in range operator
in thread Substitution in range operator

I get the correct output but in my script it doesn't change the pipe or remove the new line. Funny because i copied the char into a hex editor and got "a" (new line not carriage return) I'll play around with it some more tomorrow but is there a way to use hex values in the regex? - just googled http://www.regular-expressions.info/nonprint.html so I'll have another look at a hex editor tomorrow and give it a go trying with hex symbols.

foo | bar baz qux fred wilma barney

Replies are listed 'Best First'.
Re^7: Substitution in range operator
by benaw (Novice) on Dec 30, 2015 at 07:43 UTC

    I don't think I can use hex values in regex the hex is "a7c"

      sure you can, \x{a7c}
      $ perl -le " use Data::Dump qw/ dd /; dd qq{\x{a7c}} ; " "\x{A7C}"