06 Jun 2019 11:39 AM - last edited on 14 Dec 2021 03:05 AM by MaciejNeumann
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"
Did you considered limiting RegEx to capture only alphanumeric string?
Try this out and see if this works for you :\/f[a-z]\w+
That only captures faredriven