Can you help with regular expressions in Java?

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-02T18:55:41Z Indexed on 2010/05/02 19:07 UTC
Read the original article Hit count: 188

Filed under:
|

I have a bunch of strings which may of may not have random symbols and numbers in them. Some examples are:

contains(reserved[j])){

close();

i++){

letters[20]=word

I want to find any character that is NOT a letter, and replace it with a white space, so the above examples look like:

contains reserved j

close

i

letters word

What is the best way to do this?

© Stack Overflow or respective owner

Related posts about java

Related posts about regex