最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to remove u0000 from string? - Stack Overflow

programmeradmin9浏览0评论

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...) ?

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...) ?

Share edited Nov 23, 2023 at 10:23 BuZZ-dEE 6,99116 gold badges74 silver badges105 bronze badges asked Apr 24, 2012 at 12:19 Paresh ThummarParesh Thummar 9287 silver badges20 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 4

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])/
发布评论

评论列表(0)

  1. 暂无评论