类 RegexpUtils

java.lang.Object
com.sh.json.regexp.RegexpUtils

public class RegexpUtils extends Object
Convenience utility for working withRegexpMatcher.
  • 方法概要

    修饰符和类型
    方法
    说明
    getMatcher(String pattern)
    Returns a RegexpMatcher that works in a specific environment.
    When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher.
    getMatcher(String pattern, boolean multiline)
    Returns a RegexpMatcher that works in a specific environment.
    When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • getMatcher

      public static RegexpMatcher getMatcher(String pattern)
      Returns a RegexpMatcher that works in a specific environment.
      When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher.
    • getMatcher

      public static RegexpMatcher getMatcher(String pattern, boolean multiline)
      Returns a RegexpMatcher that works in a specific environment.
      When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher.