fork download
  1. import re
  2. p = re.compile(r'ORIG\s?:\s?/\s?([A-Z0-9]+)', re.IGNORECASE)
  3. test_str = "ORIG:/texthere"
  4. print re.search(p, test_str).group(1)
Success #stdin #stdout 0.01s 7736KB
stdin
Standard input is empty
stdout
texthere