Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pattern = "/([.a-zA-Z]+)\(/g"
- line = "something = a.b.method(time.time(), var=1) + q.y(x.m())"
- match = re.search(pattern, line)
- if match:
- for fun in match.groups():
- print fun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement