  empty_prefix_urls = [
      url(r'^', include(empty_prefix_router.urls)),
  ]
  
  urlpatterns = [
      url(r'^non-namespaced/', include(namespaced_router.urls)),
      url(r'^namespaced/', include(namespaced_router.urls, namespace='example', app_name='example')),
      url(r'^example/', include(notes_router.urls)),
      url(r'^example2/', include(kwarged_notes_router.urls)),
  
 
</s>
regex_url_path_router = SimpleRouter()
regex_url_path_router.register(r'', RegexUrlPathViewSet, base_name='regex')

  empty_prefix_urls = [
      url(r'^', include(empty_prefix_router.urls)),
  ]
  
regex_url_path_router = SimpleRouter()
regex_url_path_router.register(r'', RegexUrlPathViewSet, base_name='regex')

  urlpatterns = [
      url(r'^non-namespaced/', include(namespaced_router.urls)),
      url(r'^namespaced/', include(namespaced_router.urls, namespace='example', app_name='example')),
      url(r'^example/', include(notes_router.urls)),
      url(r'^example2/', include(kwarged_notes_router.urls)),
  
keep keep keep add keep keep keep keep keep keep
 Added: test for list_route and detail_route with regex url_path
tests/test_routers.py