10 lines
238 B
Python
10 lines
238 B
Python
|
import re
|
||
|
import sys
|
||
|
|
||
|
for line in sys.stdin:
|
||
|
match = re.search(r"(\D*[0-9]+\D+)[0-9]+(.*)", line)
|
||
|
if match:
|
||
|
print(re.sub(r"(\D*[0-9]+\D+)[0-9]+(.*)", r"\1\2", line).rstrip("\n"))
|
||
|
else:
|
||
|
print(line.rstrip("\n"))
|