Search code examples
javascript

How to remove all unit separator code inside a string all 13 of them


I got a string that look like this

'deFG4209268392612927005702000004809357'

there are unit seperator code inside that string, in vs code it look like this enter image description here

and sublime text, it look like this enter image description here

I want to remove anything look like that in the string. what the proper regex for that ?


Solution

  • /[\u0000-\u001F\u007F-\u009F\xAD\u061C\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069]/g. It covers all the standard unit operators being used.