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',
- [('ab*', 'a followed by zero or more b'),
- ('ab+', 'a followed by one or more b'),
- ('ab?', 'a followed by zero or one b'),
- ('ab{3}', 'a followed by three b'),
- ('ab{2,3}', 'a followed by two or three b'),
- ])
Advertisement
Add Comment
Please, Sign In to add comment