I have a body of text that includes “\u” that is not visible in the document. how can i remove this from my string?
I have tried
-
System.Text.RegularExpressions.Regex.Replace(strVar,“[\u]”,“”)
but I get an error Assign: parsing “[\u]” - Insufficient hexadecimal digits.
-
strVar.Replace(“\u”,“”) but this does not remove it.
here is my string example.

Mr.H
2
Pls send the Text which copied. You have posted text as picture so could not copied.
\u0007Client Reference\u0007HO/3312217600/MS13/M05\u
Check this approach:
initialString.Replace("\\u","")
Results:
Hey @Rowley101,
You want to remove “\u” only or “\u” and “" both.
If you want to remove both then use initialString.Replace(”\u",“”).Replace(“\”,“”)
Thanks,
Sanjit
ppr
(Peter Preuss)
7
\u0007 is representing the bell character
So depending on some details, unescape the text:

and/or remove chr(7)
1 Like
that has worked. thank you
system
(system)
Closed
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.