类 RegularMatch

java.lang.Object
org.anyline.util.regular.RegularMatch
所有已实现的接口:
Regular

public class RegularMatch extends Object implements Regular
完全匹配模式
  • 构造器详细资料

    • RegularMatch

      public RegularMatch()
  • 方法详细资料

    • match

      public boolean match(String src, String regx)
      匹配状态
      指定者:
      match 在接口中 Regular
      参数:
      src - src
      regx - regx
      返回:
      boolean
    • fetchs

      public List<List<String>> fetchs(String src, String regx)
      提取子串
      指定者:
      fetchs 在接口中 Regular
      参数:
      src - 输入字符串 src 输入字符串
      regx - 表达式 regx 表达式
      返回:
      List
    • fetch

      public List<String> fetch(String src, String regx, int idx)
      提取子串
      指定者:
      fetch 在接口中 Regular
      参数:
      src - 输入字符串 src 输入字符串
      regx - 表达式 regx 表达式
      idx - 指定提取位置 idx 指定提取位置
      返回:
      List
    • fetch

      public List<String> fetch(String src, String regx) throws Exception
      从接口复制的说明: Regular
      默认返回第0个(整串)
      指定者:
      fetch 在接口中 Regular
      参数:
      src - 输入字符
      regx - 表达式
      返回:
      返回整串
      抛出:
      Exception - 异常 异常
    • pick

      public List<String> pick(List<String> src, String regx)
      过滤 保留匹配项
      指定者:
      pick 在接口中 Regular
      参数:
      src - src
      regx - regx
      返回:
      List
    • wipe

      public List<String> wipe(List<String> src, String regx)
      过滤 删除匹配项
      指定者:
      wipe 在接口中 Regular
      参数:
      src - src
      regx - regx
      返回:
      List