user5674825
user5674825

Reputation:

Django URL pattern with combination of words and numbers in any order

I am trying to build a URL pattern in Django that can allow the following variations:

example:

or perhaps I should just allow any char/digit for that second position like:

folder/[anything_in_any_anyorder_here]/

any suggestions?

Upvotes: 0

Views: 324

Answers (1)

user5674825
user5674825

Reputation:

This worked for me: /*([a]|[^a])*/

Upvotes: 1

Related Questions