I'm trying to build a regular expression that can work on Google Sheets and DataStudio. The regex must check that a URL is correctly built from start to end, with no trailing characters except whitespace.
Below a test version that works for my case (here it's application)
^(http[s]?:\/\/)([^:\/\s]+)(\/\?)((?:(?:\w+=\w+)&?)+)$
Problem is that some urls in my database contain a leading or trailing zero-width space (200B code). This invalidates the query at times it shouldn't. I don't have a way to clean the data before I read it, and I can't find a valid code within this regex dialect to include it in the match.
Is there a possible workaround to this?