Back to index

python3.2  3.2.2
Variables
test.regex_tests Namespace Reference

Variables

list benchmarks
list tests

Variable Documentation

Initial value:
00001 [
00002         ('Python', 'Python'),                     # Simple text literal
00003         ('.*Python', 'Python'),                   # Bad text literal
00004         ('.*Python.*', 'Python'),                 # Worse text literal
00005         ('.*\\(Python\\)', 'Python'),             # Bad text literal with grouping
00006 
00007         ('(Python\\|Perl\\|Tcl', 'Perl'),          # Alternation
00008         ('\\(Python\\|Perl\\|Tcl\\)', 'Perl'),     # Grouped alternation
00009         ('\\(Python\\)\\1', 'PythonPython'),       # Backreference
00010 #       ('\\([0a-z][a-z]*,\\)+', 'a5,b7,c9,'),     # Disable the fastmap optimization
00011         ('\\([a-z][a-z0-9]*,\\)+', 'a5,b7,c9,')    # A few sets
00012 ]

Definition at line 14 of file regex_tests.py.

Definition at line 44 of file regex_tests.py.