cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regex issue with URL Cleaning Rule

jonathan_triol1
Inactive

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"




3 REPLIES 3

Did you considered limiting RegEx to capture only alphanumeric string?

Sebastian


kulwinder_singh
Inactive

Try this out and see if this works for you :\/f[a-z]\w+


That only captures faredriven