fork download
  1. # your code goes here
  2. import re
  3. text = """
  4. IF NONE OF ABOVE BOXES ARE TICKED THE LOCAL CURRENCY WILL BE APPLIED 3. Your details *Your Sorted Code: 5q8-34fc3-00fd34
  5. """
  6.  
  7.  
  8. m = re.findall(r"Code: ([^\s]+)$", text)
  9. if m:
  10. code = m[0]
  11. print(code)
  12.  
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
5q8-34fc3-00fd34