Hello,
In our service we use the UriPaths which contain the $ character like /api/$smartContent
. There is a case that I need to evaluate it in the Rules → Transfor Rules by the does not match regex. Unfortunately I do not know how to escape the $ character in Cloudflare’s regex parser. It seems to work differently.
I tried many ways like below but non of them work:
- not http.request.uri.path matches “^/api/$smartContent”
- not http.request.uri.path matches “^/api/$smartContent”
- not http.request.uri.path matches “^/api/$$smartContent”
When I test it by using raw string like not http.request.uri.path contains "/api/$smartContent"
it works, so my logic is proper.
Of course I cannot use the /api/$smartContent
because it is dynamic, so my regex should look like ^/app/$.+
but as I mentioned - I do not know how to escape the $ character.