I'm trying to strip UTM parameters from links, so I'm using regex to try to remove the ?
from the URL and anything after.
My regex: \?.*
But instead of filtering out the string, the parser is only keeping things that match. How do I reverse it so it's filtering it the other way?
(In this example, there is only one string with UTM params, so it's only matching one record.)