﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26621	simplify_regex handles named capture groups incorrectly	Alex Rothberg	Ketan Bhatt	"For example using a regex from [http://www.django-rest-framework.org/api-guide/versioning/  Django Rest Framework docs]:

{{{
>>> from django.contrib.admindocs.views import simplify_regex
>>> simplify_regex(r'^(?P<version>(v1|v2))/bookings/(?P<pk>[0-9]+)/$')
'/<version>)/bookings/<pk>/'
}}}

The closing parenthesis in the output is unexpected.

Escaping the `/` does not seem to help.
"	Bug	closed	contrib.admindocs	1.9	Normal	fixed			Accepted	1	0	0	1	0	0
