Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove \u0000 from string?

Tags:

javascript

I am encoding PDU message. At beggining of message I got String Some thing like :

\u0005\u0000\f0)@\u0000This is testing\u0000

How to remove it (\u0005...) ?

like image 402
Paresh Thummar Avatar asked Oct 29 '25 14:10

Paresh Thummar


1 Answers

Try this Regular Expression to remove unicode char from the string :

 /*\\u([0-9]|[a-fA-F])([0-9]|[a-fA-F])([0-9]|[a-fA-F])([0-9]|[a-fA-F])/
like image 159
Chintan Avatar answered Oct 31 '25 05:10

Chintan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!