Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- ExampleLine = "prices xom 91.43-91.44/vz50-50.01/s 7.23-7.24"
- regex = re.findall(r"w{1,3}s?d{1,2}.?d{0,2}-d{1,2}.?d{0,2}", ExampleLine)
- print(regex)
- ['xom 91.43-91.44', 'vz50-50.01', 's 7.23-7.24']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement