Advertisement
rfmonk

re_charset_dot.py

Jan 2nd, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. from re_test_patterns import test_patterns
  5.  
  6. test_patterns(
  7.     'abbaabbba',
  8.     [('a.',     'a followed by any one character'),
  9.      ('b.',     'b followed by any one character'),
  10.      ('a. *b',  'a followed by anything, ending in b'),
  11.      ('a. *?b', 'a followed by anything, ending in b'),
  12.      ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement