import rep = re.compile(r'\\\\r\S*')test_str = r"\\r \\rtest"print(p.findall(test_str))
Standard input is empty
['\\\\r', '\\\\rtest']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!