[code.view]

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

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2010 Doug Hellmann.  All rights reserved.
     #
     """Repetition of patterns
     """
     #end_pymotw_header
     
     from re_test_patterns import test_patterns
     
     test_patterns('This is some text -- with punctuation.',
                   [ '[^-. ]+',  # sequences without -, ., or space
                     ])
     

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

contact | logmethods.com