Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- text = input()
- pattern = r"(?<=:)."
- matches = re.findall(pattern, text)
- for match in matches:
- print(f":{match}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement