Created
          September 18, 2014 01:40 
        
      - 
      
 - 
        
Save cjwinchester/479c83d24ae06a83482f to your computer and use it in GitHub Desktop.  
    Grouping back and forth forever
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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