public static String unescapeString ( String escapedString ) { Matcher match = escapeSequence . matcher ( escapedString ) ; StringBuffer output = new StringBuffer ( ) ; while ( match . find ( ) ) { match . appendReplacement ( output , substitution ( match . group ( ) ) ) ; } match . appendTail ( output ) ; return output . toString ( ) ; }
Takes an escaped string and returns the unescaped version