line = r"example \xb7\xc7\xa0...."import ret = re.findall (r'\\x[0-9a-fA-F]+', line)print t
Standard input is empty
['\\xb7', '\\xc7', '\\xa0']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!