I have a string coming from a UI that contains control characters such as line feeds and carrage returns.
I would like to do something like this:
String input = uiString.replaceAll(<regex for all control characters> , "")
Surely this has been done before!?
Something like this should do the trick: