I’ve been trying to get a regex to take part of a URL path and substitute a pattern within the capture group for this portion of the path
eg,
/blah%20blah%20blah%20-%20blah/
Should return
/blah-blah-blah—blah/
or ideally
/blah-blah-blah-blah/
This is specific to an Akamai edge redirector cloudlet rule. Documentation indicates PCRE compatible regex.
Thanks!
I have the capture group and have tried a negative lookahead but even if that worked I would expect to have
/blahblahblah-blah/
Cameron Cox is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.