Removing Non-ASCII Characters

Hello,
I am trying to display a string that I get from a tag. The displayed value is appearing like the picture included:
image

I am trying to remove the trailing characters using:

split({tagName},’[^\x00-\x7F]’)[0]

But encounter the error:

Scan Error: Illegal escape sequence “\x” (Line 1, Char 37)

Does anyone know how I can format this regex in an acceptable way/another way to remove these characters?
Thanks

Two ‘\’ instead of 1

2 Likes