fork download
  1. import re
  2.  
  3. print re.sub("0x([0-9A-F]+)", r"x'\1'::int", "0x0A 0xFD")
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
x'0A'::int x'FD'::int