How remove “\u”

i have string like this in my output panel from write line.
strNew = “ARCHIVE FORMBox Number\u0007\u0007\u0007Greenwoods File Number\u0007014203\u0007”

but when i use
System.Text.RegularExpressions.Regex.Replace(strNew,"[\u]","")

i get error “Assign: parsing “[\u]” - Insufficient hexadecimal digits.”

how can i remove this \u from my string?

Possible duplicate of How to remove \u0007 character from string? - #2 by ppr

1 Like

Try using 2 slashes instead of one.

System.Text.RegularExpressions.Regex.Replace(strNew,"\u","")

You can give it a try this way @Rowley101 :

strNew.Replace("\u","").Tostring.Trim

Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.