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
In reply to Re^6: Subistution in range operator
by benaw
in thread Substitution in range operator
by benaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |