Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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