(original) (raw)


I don't know if this is the right place to put this,
but I've found the following lines of code results in an incredibly long processing time.
Perhaps it might be of use to someone.

import re
pat = re.compile('^/?(?:\\\\w+)/(?:\[%\\\\w-\]+/?)+/?$')
pat.match('/t/a-aa-aa-aaaaa-aa-aa-aa-aa-aa-aa./')