fork download
  1. import re
  2. text = "Job 1233:name_uuid (table n_Cars_1234567$20220316) done. Records: 24, with errors: 0."
  3. rx = r"table\s+([^()]*)\$([0-9]+)"
  4. m = re.search(rx, text)
  5. if m:
  6. print(m.group(1))
  7. print(m.group(2))
Success #stdin #stdout 0.03s 9520KB
stdin
Standard input is empty
stdout
n_Cars_1234567
20220316