Package org.mapfish.print
Class RegexpUtil
- java.lang.Object
-
- org.mapfish.print.RegexpUtil
-
public final class RegexpUtil extends java.lang.Object
Regular Expression utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.regex.Pattern
compilePattern(java.lang.String expr)
Convert a string to a Pattern object.
-
-
-
Method Detail
-
compilePattern
public static java.util.regex.Pattern compilePattern(java.lang.String expr)
Convert a string to a Pattern object.- If the host starts and ends with / then it is compiled as a regular expression
- Otherwise the hosts must exactly match
- Parameters:
expr
- the expression to compile
-
-