re.match('^org/?P<company_name>\\w+/$', 'org/companyA')
re.match('^org/(?P<company_name>\\w+)/?$', 'org/companyA')
re.match('^org/(?P<company_name>\\w+)/?$', 'org/companyA').groupdict()
Using Python Regular Expression in Django