Skip to content

Instantly share code, notes, and snippets.

@cjwinchester
Created September 18, 2014 01:40
Show Gist options
  • Save cjwinchester/479c83d24ae06a83482f to your computer and use it in GitHub Desktop.
Save cjwinchester/479c83d24ae06a83482f to your computer and use it in GitHub Desktop.
Grouping back and forth forever
import re
x = re.compile("\w{8}\s\w{4}\s\w{3}\s\w{5}")
y = re.compile("\w{7}")
q = x.match("grouping back and forth").group()
z = y.match("forever").group()
while True:
print q,z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment