runnig

Regex python

Jan 12th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. import re
  2. text = "my text contains 11.2, 22.2, 33.3 numbers"
  3. match = re.findall("\d+\.\d+", text)
  4. for m in match:
  5.     print m
Advertisement
Add Comment
Please, Sign In to add comment