Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编码 PDU 消息。在消息的开头,我得到了 String 类似的东西:
\u0005\u0000\f0)@\u0000This is testing\u0000
如何删除它(\u0005...)?谢谢
试试这个正则表达式从字符串中删除 unicode char:
/*\\u([0-9]|[a-fA-F])([0-9]|[a-fA-F])([0-9]|[a-fA-F])([0-9]|[a-fA-F])/