in reply to Re^2: Regex not matching
in thread Regex not matching
No.
If you have od, you could dump your file using
od -c file
Or you could use Perl.
perl -ple's/\\/\\\\/g; s/([^\x21-\x7E])/sprintf(qq{\\x{%X}}, ord($1))/ +eg;' file
(Switch «'» for «"» for the Windows shell.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Regex not matching
by perl_mystery (Beadle) on Jan 29, 2011 at 04:46 UTC | |
by ikegami (Patriarch) on Jan 29, 2011 at 04:48 UTC | |
by perl_mystery (Beadle) on Jan 29, 2011 at 04:59 UTC |