          return self.queryset[index]
  
  
  notes_router = SimpleRouter()
  notes_router.register(r'notes', NoteViewSet)
  
  kwarged_notes_router = SimpleRouter()
  kwarged_notes_router.register(r'notes', KWargedNoteViewSet)
  
 
</s>
class RegexUrlPathViewSet(viewsets.ViewSet):
    @list_route(url_path='list/(?P<kwarg>[0-9]{4})')
    def regex_url_path_list(self, request, *args, **kwargs):
        kwarg = self.kwargs.get('kwarg', '')
        return Response({'kwarg': kwarg})

    @detail_route(url_path='detail/(?P<kwarg>[0-9]{4})')
    def regex_url_path_detail(self, request, *args, **kwargs):
        pk = self.kwargs.get('pk', '')
        kwarg = self.kwargs.get('kwarg', '')
        return Response({'pk': pk, 'kwarg': kwarg})


          return self.queryset[index]
  
  
class RegexUrlPathViewSet(viewsets.ViewSet):
    @list_route(url_path='list/(?P<kwarg>[0-9]{4})')
    def regex_url_path_list(self, request, *args, **kwargs):
        kwarg = self.kwargs.get('kwarg', '')
        return Response({'kwarg': kwarg})

    @detail_route(url_path='detail/(?P<kwarg>[0-9]{4})')
    def regex_url_path_detail(self, request, *args, **kwargs):
        pk = self.kwargs.get('pk', '')
        kwarg = self.kwargs.get('kwarg', '')
        return Response({'pk': pk, 'kwarg': kwarg})


  notes_router = SimpleRouter()
  notes_router.register(r'notes', NoteViewSet)
  
  kwarged_notes_router = SimpleRouter()
  kwarged_notes_router.register(r'notes', KWargedNoteViewSet)
  
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