I played a little and got this - [\w\+%_& ]+ .
So (r'^(?P<chararg>\w+)/IT_NEEDS_TO_BE_HERE/(?P<intarg>\d+)', 'dest') will become
(r'^(?P<chararg>\w+)/(?P<arg>[\w\+%_& ]+)/(?P<intarg>\d+)', 'dest')
\w matches any characters and numbers. \+ mathces +
EDIT: \ d is not required.
source share