Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from re_test_patterns import test_patterns
- test_patterns(
- 'abbaabbba',
- [('a.', 'a followed by any one character'),
- ('b.', 'b followed by any one character'),
- ('a. *b', 'a followed by anything, ending in b'),
- ('a. *?b', 'a followed by anything, ending in b'),
- ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement