fork(3) download
  1. import re
  2. f = """First line.
  3. 2. Second line
  4. 03 Third line
  5. 04. Fourth line
  6. 5. Line.
  7. 6 Line""".splitlines()
  8. #with open("file.txt") as f:
  9. for line in f:
  10. print(re.sub("^[0-9]+\.?\s*", "", line))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
First line.
Second line 
Third line
Fourth line
Line. 
Line