Advertisement
go6odn28

remove_empty_string

Mar 27th, 2024
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. import re
  2.  
  3. pattern = r">>|<<|!"
  4. string = ">>Sofa<<312.23!3"
  5. info = re.split(pattern, string)
  6. info = list(filter(None, info))
  7.  
  8. print(info)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement