I am writing regex pattern for nginx rewrite rules to redirect the url. Here is string pattern which I would like to match and not-match.
Match url for below uri.
/abc/def
/abc/def/#
/abc/def#/
/abc/def/#/
Exclude the url if test in the string.
/abc/def/test
/abc/def#/test
/abc/def/#/test
/abc/def/test/dsadasd
/abc/def#/test/dadsd
I have written below regex pattern but it is failing for two match highlighted in yellow
Any suggestions to fix this? Thanks !
