接口 RegexpMatcher

所有已知实现类:
JdkRegexpMatcher

public interface RegexpMatcher
Abstraction for regexp handling.
  • 方法概要

    修饰符和类型
    方法
    说明
    getGroupIfMatches(String str, int group)
    Returns the specified group if the string matches the Pattern.
    The Pattern will be managed internally by the RegexpMatcher implementation.
    boolean
    Returns true is the string macthes the Pattern.
    The Pattern will be managed internally by the RegexpMatcher implementation.
  • 方法详细资料

    • getGroupIfMatches

      String getGroupIfMatches(String str, int group)
      Returns the specified group if the string matches the Pattern.
      The Pattern will be managed internally by the RegexpMatcher implementation.
    • matches

      boolean matches(String str)
      Returns true is the string macthes the Pattern.
      The Pattern will be managed internally by the RegexpMatcher implementation.