Class RegexUtilitiesKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean matchAll(List<Regex> $self, String string) match the given string against all regular expressions in this list.
      final static Regex toDotEscapedRegex(String $self) Turn this string into a regex in which every . matches a literal dot instead of any character.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • matchAll

         final static Boolean matchAll(List<Regex> $self, String string)

        match the given string against all regular expressions in this list.

        Returns:

        true if any match was found, false otherwise.

      • toDotEscapedRegex

         final static Regex toDotEscapedRegex(String $self)

        Turn this string into a regex in which every . matches a literal dot instead of any character.

        Intended for building patterns out of dotted version numbers, where an unescaped . silently makes a pattern too permissive — 1.21 would otherwise also match 1x21.

        Returns:

        This string as a Regex, with every dot escaped.