Regexp

Escape regular expression

If you have to insert any character array as literal you need to escape the reserved characters. For some of the typical formats the Java runtime library or the servlet api contains the necessary escape functions. For regular expressions used in java.util.regex.Pattern such a method is missing.