How do I remove these strange characters from a string?
I have been trying with regex, but with no success.
Before Remove:
RegExr was created by gskinner.com, and is proudly hosted by Media Temple.
*??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
?????????????????????????????????????????????????????????? ╚═════???????????══════╝??? ??? ??? ??? ??? ??? ??? ??? ??? ??
Edit the Expression & Text to see matches. Roll over matches or the expression for details. PCRE & JavaScript flavors of RegEx are supported. Validate your expression with Tests mode.
After Remove:
RegExr was created by gskinner.com, and is proudly hosted by Media Temple.
Edit the Expression & Text to see matches. Roll over matches or the expression for details. PCRE & JavaScript flavors of RegEx are supported. Validate your expression with Tests mode.
I already tried:
/[^\x00-\x7F]/gu
/([p{L}|p{N}|p{S}|p{M}p{P}])/gu
/[WD]/g
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…