| 15 | | ('^places?/$', '/', [], {}), |
|---|
| 16 | | ('^places+/$', 'places/', [], {}), |
|---|
| 17 | | ('^places*/$', '/', [], {}), |
|---|
| 18 | | (r'^places/(\d+|[a-z_]+)/', 'places/4/', [4], {}), |
|---|
| 19 | | (r'^places/(\d+|[a-z_]+)/', 'places/harlem/', ['harlem'], {}), |
|---|
| 20 | | (r'^places/(\d+|[a-z_]+)/', NoReverseMatch, ['harlem64'], {}), |
|---|
| 23 | 12 | ('^people/(?P<name>\w+)/$', 'people/adrian/', ['adrian'], {}), |
|---|
| 24 | 13 | ('^people/(?P<name>\w+)/$', 'people/adrian/', [], {'name': 'adrian'}), |
|---|
| 25 | 14 | ('^people/(?P<name>\w+)/$', NoReverseMatch, ['name with spaces'], {}), |
|---|
| 26 | 15 | ('^people/(?P<name>\w+)/$', NoReverseMatch, [], {'name': 'name with spaces'}), |
|---|
| 27 | | ('^people/(?:name/)', 'people/name/', [], {}), |
|---|
| 28 | | ('^people/(?:name/)?', 'people/', [], {}), |
|---|
| 29 | | ('^people/(?:name/(\w+)/)?', 'people/name/fred/', ['fred'], {}), |
|---|
| | 16 | ('^people/(?P<name>\w+)/$', NoReverseMatch, [], {}), |
|---|
| 40 | | (r'^people/((?P<state>\w\w)/test)?/(\w+)/$', 'people/il/test/adrian/', ['adrian'], {'state': 'il'}), |
|---|
| 41 | | (r'^people/((?P<state>\w\w)/test)?/(\w+)/$', NoReverseMatch, ['adrian'], {}), |
|---|
| 42 | | ('^character_set/[abcdef0-9]/$', 'character_set/a/', [], {}), |
|---|
| 43 | | ('^character_set/[\w]/$', 'character_set/a/', [], {}), |
|---|
| 44 | | (r'^price/\$(\d+)/$', 'price/$10/', ['10'], {}), |
|---|
| 45 | | (r'^price/[$](\d+)/$', 'price/$10/', ['10'], {}), |
|---|
| 46 | | (r'^price/[\$](\d+)/$', 'price/$10/', ['10'], {}), |
|---|
| 47 | | (r'^product/(?P<product>\w+)\+\(\$(?P<price>\d+(\.\d+)?)\)/$', 'product/chocolate+($2.00)/', ['2.00'], {'product': 'chocolate'}), |
|---|
| 48 | | (r'^headlines/(?P<year>\d+)\.(?P<month>\d+)\.(?P<day>\d+)/$', 'headlines/2007.5.21/', [], dict(year=2007, month=5, day=21)), |
|---|
| 49 | | (r'^windows_path/(?P<drive_name>[A-Z]):\\(?P<path>.+)/$', r'windows_path/C:\Documents and Settings\spam/', [], dict(drive_name='C', path=r'Documents and Settings\spam')), |
|---|
| 50 | | (r'^special_chars/(.+)/$', r'special_chars/+\$*/', [r'+\$*'], {}), |
|---|
| 51 | | (r'^special_chars/(.+)/$', NoReverseMatch, [''], {}), |
|---|
| 52 | | (r'^(?P<name>.+)/\d+/$', NoReverseMatch, [], {'name': 'john'}), |
|---|
| 53 | | (r'^repeats/a{1,2}/$', 'repeats/a/', [], {}), |
|---|
| 54 | | (r'^repeats/a{2,4}/$', 'repeats/aa/', [], {}), |
|---|
| 55 | | (r'^people/(?:(?:wilma|fred)/)$', '/people/wilma', [], {}), |
|---|