Guest User

Untitled

a guest
Aug 15th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import pyperclip
  2. import time
  3. import re
  4. while True:
  5.         s = pyperclip.paste()
  6.         x = re.match("(\d{3})(\d{3})(\d{3})", s)
  7.         if x:
  8.                 pyperclip.copy("+420 {} {} {}".format(x.group(1), x.group(2), x.group(3)))
  9.         time.sleep(0.2)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment