How to detect and replace non-printable characters in a string using Java ?

Posted by Frank on Stack Overflow See other posts from Stack Overflow or by Frank
Published on 2010-03-21T02:27:04Z Indexed on 2010/03/21 2:31 UTC
Read the original article Hit count: 402

Filed under:
|
|
|

For instance I have a string like this : abc123[*]xyz[#]098[~]f9e

[*] , [#] and [~] represents 3 different non-printable characters. How can I replace them with "X" in Java ?

Frank

© Stack Overflow or respective owner

Related posts about replace

Related posts about non-printable