Me thought it clever to split() the array and then take first(). For some reason it won’t split! After question mark wouldn’t work I thought maybe ‘/’ - see below. Thoughts?
@Federico_Stefanato !!! yes it needed to be converted to text. Although I pasted it in as text, Coda did an end run and transformed it into not-text. Thank you!
Great!
Even though if you need to take out the query parameters, maybe it’s easier go with Left() and Find() functions searching for the “?”.
Unfortunately, RegexReplace() cannot work with groups (please, somebody tell me otherwise); it would have been a good candidate.
Well, just common sense.
I guess that splitting an URL in slashes and taking the first occurrence would return “http:”
You’re not searching for “/” but for “?”, as far as I understood.
If you need a string before a certain string/character, it is usually better search for the occurrence and cut it after.
I get the confusion though, the docs sample clearly specifies $ symbol in the replacement as simply part of the literal $2000. I guess it was just a hunch for me to try \1, %1, $1 — I never remember which that is in this or that language.