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(
- 'abbaaabbbbaaaaa',
- [('a(ab)', 'a followed by literal ab'),
- ('a(a*b*)', 'a followed by 0-n a and 0-n b'),
- ('a(ab)*', 'a followed by 0-n ab'),
- ('a(ab)+', 'a followed by 1-n ab'),
- ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement