Using the RegEx ^(https?:\/\/|)([^\?#]*).*$|$1$2
, specifically to target ?srsltid
strings doesn't seem to be working. I can't find a RegEx error, and I've written a decent amount of RegEx without any issues in the past, except some noncapturing groups not being recognized on Shortcuts.app, which I solved by using the inside pipe
after the https
, which is why I'm using it here instead of (?:https:\/\/)?
. I've tried a few variations of the RegEx, some of which have succeeded in replacing the domain, somehow, but I can't seem to get rid of this string in search results. Oddly, Kagi tends not to show other tracking parameters, so I'm not sure why this one is showing up even before the clean domain in search results.
I've verified my characters are the correct unicode.
Proper replacement. For example: https://dangkeebs.com/?srsltid=abc123
to replace to https://dangkeebs.com/
using the aforementioned RegEx.