I have a URL which needs to be filtered from a certain logs if it has user-specific information.
URL looks something like this:
/v1/info/infor1/users/ABC
(/v1/info/:info/users/:userID #info and userID are parameters)
If I write a regex like /v1/info/.*/users/.*
, will it filter all URLs starting with /v1/info
? If yes, how do I make sure the filtering happens only based on the URL containing the userUID?
Tried /v1/info/.*/users/.*
and it matches URLs like /v1/info/infor1/users/ABC
and not /v1/info/details
and I am not sure how it works. Does .*
not compare everything from that point?