I have a URL and I'd like to match the ending of it exactly.
The url is [some_host]/url/action If the URL contains "url/action" in it I'd like for it to be matched.
Additional Rule 1: The URL can contain more data on the end e.g. "[some_host]/url/action/newTransaction/" -- in this case I'd like for the regex to not match it.
Additional Rule 2: However if the URL is "[some_host]/url/action?t=true then I'd like for the regex to match.
What should my regex look like?
EDIT: Some examples:
"[some_host]/url/action" -- should match.
"[some_host]/url/action/" -- should match.
"[some_host]/url/action?t=true" -- should match
"[some_host]/url/action/?t=true" -- should match
"[some_host]/url/action/[ANYTHING_ELSE]" -- should NOT match