public static String fromWellFormed ( String value ) { if ( value == null ) { return LogicalValue . ANY . getAbbreviation ( ) ; } //return value.replaceAll("\\\\([^0-9A-Za-z])", "$1"); StringBuilder buffer = new StringBuilder ( value ) ; char p = ' ' ; for ( int x = 0 ; x < buffer . length ( ) - 1 ; x ++ ) { char c = buffer . charAt ( x ) ; if ( c == ' ' && p != ' ' ) { buffer . delete ( x , x + 1 ) ; x -= 1 ; } p = c ; } return buffer . toString ( ) ; }
Transforms the given well formed string into a non - escaped string . A well formed string has all non - alphanumeric characters escaped with a backslash .