fork(1) download
  1. import re
  2. def extract_step(filename):
  3. match = re.search(r"step_(\d+)", filename)
  4. return int(match.group(1)) if match else -1
  5. print(extract_step("online_batch_step_379.csv"))
Success #stdin #stdout 0.18s 15428KB
stdin
Standard input is empty
stdout
379