Class WildMatcher

java.lang.Object
sk.antons.json.match.wild.WildMatcher

public class WildMatcher extends Object
Match string with pattern. Pattern can use wild cards '*' and '?'. Character '?' stands for any character (exactly one). Character '*' stands for sequence of characters (possibly empty sequence).
Author:
antons
  • Constructor Details

    • WildMatcher

      public WildMatcher(String pattern)
  • Method Details

    • instance

      public static WildMatcher instance(String pattern)
    • match

      public boolean match(String text)
    • tryMatch

      public boolean tryMatch(String text, int element, int offset)