Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- pattern = r">>|<<|!"
- string = ">>Sofa<<312.23!3"
- info = re.split(pattern, string)
- info = list(filter(None, info))
- print(info)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement