I'm trying to parse certain addresses, and I'd like to remove out the special characters except the / in s/o | S/O | d/o | D/O | w/O etc.
So, lets say I have a string. Something like.
@Jane Doe.
W/O John Doe.
House #250,
Campbell & Jack ^Street,
\Random * State, Nowhere.
What sort of regex would I use in
String parsedString = addressString.replaceAll(regex,"");
so that parsedString would have the output.
Jane Doe
W/O John Doe
House 250
Campbell Jack Street
Random State, Nowhere
(I'm replacing @ , . # ^ & / (except in W/O) )