diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py
index 1497d43..574dc92 100644
|
a
|
b
|
class RegexURLResolver(LocaleRegexProvider):
|
| 295 | 295 | match = self.regex.search(path) |
| 296 | 296 | if match: |
| 297 | 297 | new_path = path[match.end():] |
| | 298 | # Get script prefix, apply regexp and remove from path if present. |
| | 299 | prefix = get_script_prefix() |
| | 300 | if prefix: |
| | 301 | match = self.regex.search(prefix) |
| | 302 | if match: |
| | 303 | prefix = prefix[match.end():] |
| | 304 | if new_path.startswith(prefix): |
| | 305 | new_path = new_path[len(prefix):] |
| 298 | 306 | for pattern in self.url_patterns: |
| 299 | 307 | try: |
| 300 | 308 | sub_match = pattern.resolve(new_path) |