13 lines
206 B
Plaintext
13 lines
206 B
Plaintext
|
#!/usr/bin/python3
|
||
|
|
||
|
import sys
|
||
|
import re
|
||
|
|
||
|
for input in sys.stdin.readlines():
|
||
|
answer = re.sub('(([\D]*[\d]+[\D]+)[\d]+(.*$))', '\\2\\3',input)
|
||
|
if answer:
|
||
|
print(answer[:-1])
|
||
|
else:
|
||
|
print(input[:-1])
|
||
|
|