I’m having problems with the Replace function for a string, with regex.
I’m trying to escape all characters except numbers and text.
The second Replace function is working properly (I need to escape everything except text). I can’t seem to find the problem, or difference between the two functions.
Function1:
→ the output stays the same as the input (even if I change the output variable to a new)
Function2:
→ the output is as expected