Class RegExUtil

java.lang.Object
com.biglybt.core.util.RegExUtil

public class RegExUtil extends Object
  • Field Details

    • PAT_SPLIT_COMMAWORDS

      public static final Pattern PAT_SPLIT_COMMAWORDS
    • PAT_SPLIT_COMMA

      public static final Pattern PAT_SPLIT_COMMA
    • PAT_SPLIT_DOT

      public static final Pattern PAT_SPLIT_DOT
    • PAT_SPLIT_SPACE

      public static final Pattern PAT_SPLIT_SPACE
    • PAT_SPLIT_SLASH_N

      public static final Pattern PAT_SPLIT_SLASH_N
    • tls

      private static final ThreadLocal<Map<String,Object[]>> tls
  • Constructor Details

    • RegExUtil

      public RegExUtil()
  • Method Details

    • getCachedPattern

      public static Pattern getCachedPattern(String namespace, String pattern)
    • getCachedPattern

      public static Pattern getCachedPattern(String namespace, String pattern, int flags)
    • convertAndOrToExpr

      public static String convertAndOrToExpr(String str)
    • splitAndQuote

      public static String splitAndQuote(String s, String splitterRegex)
    • mightBeEvil

      public static boolean mightBeEvil(String str)