in reply to Swap Ascii chr() for null string

Hello PriNet,

in the TMTOWTDI spirit I repet what I said in ChatterBox yesterday night, but I strongly suggest you to follow the ikegami's way to do it: it is direct, concise and reliable with no need of temp variable. If you have problem with hex values just put some comments above the regex as a cheatsheet: # hex \x0C  is chr(12) and so on.

What I proposed yesterday was:

s/${\(chr(12))}//g;

That is more a trick than a real solution, good to know. See Re: Using 'ord' in a regular expression for substitution where JavaFan originally proposed this solution.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.