Advertisement
Guest User

Untitled

a guest
May 4th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import re
  2.  
  3. ExampleLine = "prices xom 91.43-91.44/vz50-50.01/s 7.23-7.24"
  4. regex = re.findall(r"w{1,3}s?d{1,2}.?d{0,2}-d{1,2}.?d{0,2}", ExampleLine)
  5. print(regex)
  6.  
  7. ['xom 91.43-91.44', 'vz50-50.01', 's 7.23-7.24']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement