I\'m processing some Java source code using Java. I\'m extracting the string literals and feeding them to a function taking a String. The problem is that I need to pass the
Java 13 added a method which does this: String#translateEscapes.
It was a preview feature in Java 13 and 14, but was promoted to a full feature in Java 15.