Class RegexpUtil

java.lang.Object
org.mapfish.print.RegexpUtil

public final class RegexpUtil extends Object
Regular Expression utilities.
  • Method Details

    • compilePattern

      public static Pattern compilePattern(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