** means any path like in /app/** could be /app/a/path/to/something ? Or ** literally ?
- Ludovic Kuty
yes, any path would match (like your example of /app/a/path/to/something). is there some kind of regex that says "either end here or have this character (/) and anything else. I tried ends with in an or but that didn't work either.
- MoatMonster
I'not sure about the ** - thing, but can you really be needing something like this ???
^/app/?(/[^/]+)*/?$
0
votes
^/(app1|app2)(?:/(.*))?$
matches all the below
/app1 or /app1/ or /app1/whatever /app2 or /app2/ or /app2/whatever
^/app(?:/(.*))?$
will match /app or /app/ or /app/whatever
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
**
means any path like in/app/**
could be/app/a/path/to/something
? Or**
literally ? - Ludovic Kuty