fork download
  1. import re
  2. p = re.compile(r'\\\\r\S*')
  3. test_str = r"\\r \\rtest"
  4. print(p.findall(test_str))
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
['\\\\r', '\\\\rtest']