import restr = r"char = '\077'"print (re.findall(r"'\\0[0-7]{2}'", str))
Standard input is empty
["'\\077'"]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!