I'm trying to match:
/app
/app/
/app/**
but not:
/app**
The trailing slash should be optional. I can't quite get it to work.
^/app/([^/]*)/?
matches /app/
and /app/**
, but not /app
.
Try this:
^\/app((\/\w+)+|\/?)$
This will work:
^/app(/[^/]*)?
edit: This will also work:
^/app(/.*)?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With