Advertisement
VladimirKostovsky

Monty Python on Friday (part II)

Jun 2nd, 2022
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import re
  2. with open('input.txt') as f:
  3.     text = f.read()
  4.     results = re.sub(r"(\d{2}).(\d{2}).\d{2}(\d{2})", r"9 марта 2022 г.", text)
  5.  
  6.     print(results)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement