in reply to Command Line Regex

if you had the entire file in hex (without silly % characters) then you could use pack/unpack instead of calling in the cavalry (regex)
the hardest line to type correctly is: stty erase ^H