[code.view]

[top] / python / PyMOTW / re / re_groups_nested.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2010 Doug Hellmann.  All rights reserved.
     #
     """Nested groups
     """
     #end_pymotw_header
     
     from re_test_patterns_groups import test_patterns
     
     test_patterns('abbaaabbbbaaaaa',
                   [r'a((a*)(b*))', # 'a' followed by 0-n 'a' and 0-n 'b'
                    ])
     

[top] / python / PyMOTW / re / re_groups_nested.py

contact | logmethods.com