# Removing Non-ASCII Characters

**URL:** <https://forum.inductiveautomation.com/t/removing-non-ascii-characters/44367>\
**Category:** Ignition\
**Created:** [March 11, 2021, 4:26pm UTC](https://forum.inductiveautomation.com/t/removing-non-ascii-characters/44367 "2021-03-11T16:26:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexfediw](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@alexfediw](https://forum.inductiveautomation.com/u/alexfediw)\
**Post date:** [March 11, 2021, 4:26pm UTC](https://forum.inductiveautomation.com/t/removing-non-ascii-characters/44367/1 "2021-03-11T16:26:48Z")

</div>

Hello,  
I am trying to display a string that I get from a tag. The displayed value is appearing like the picture included:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/3/83a2c23a67e932204ac6e3734fdea196697b4c34.png)

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

---

<div class="post-metadata">

**Author:** ![alexfediw](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@alexfediw](https://forum.inductiveautomation.com/u/alexfediw)\
**Post date:** [March 11, 2021, 4:34pm UTC](https://forum.inductiveautomation.com/t/removing-non-ascii-characters/44367/2 "2021-03-11T16:34:02Z")

</div>

Two ‘\’ instead of 1
