06 Jun 2019 07:39 PM - last edited on 14 Dec 2021 11:05 AM by MaciejNeumann
Hi All,
I am working on setting up a regex but I am having trouble with the final URL Cleanup rules.
Example URL: "https://www.aircanada.com/ca/en/aco/home.html#/faredriven:0"
What I want to capture: "faredriven"
Current Regex: "https://www.aircanada.com/.*/.*/.*/home.html#//*?(?=\\?|$)"
What it captures: "faredriven:0"
06 Jun 2019 08:09 PM
Did you considered limiting RegEx to capture only alphanumeric string?
Sebastian
07 Jun 2019 06:49 AM
Try this out and see if this works for you :\/f[a-z]\w+
07 Jun 2019 06:50 AM
That only captures faredriven