How to Remove ‘\x’ From a Hex String in Python?
Problem Formulation + Examples π¬ Question: Given a string of hexadecimal encoded string such as ‘\x00\xff\xf2’. How to remove the ‘\x’ prefixes or characters from the hex string? Here are a few examples of what you want to accomplish: Hex String Desired Output ‘\x00\xff\xf2′ ’00fff2’ ‘\x41\x42\x43’ ‘414243’ ‘\x53′ ’53’ ‘\xff\xff\xff\xff\xff’ ‘ffffffffff’ ‘\x00\x6a\x6f’ ‘006a6f’ Strawman Solutions … Read more