Advertisement
Guest User

Untitled

a guest
Dec 28th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. pattern = "/([.a-zA-Z]+)\(/g"
  2. line = "something = a.b.method(time.time(), var=1) + q.y(x.m())"
  3. match = re.search(pattern, line)
  4. if match:
  5. for fun in match.groups():
  6. print fun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement