Class PatternUtils



  • public final class PatternUtils
    extends Object
    This class is created for common-use patterns used in things such as String.split(String).
    Every time something like String.split(String) is called it will compile a Pattern, for code that is called often this can be a massive performance loss. This class solves that, one compile but many uses!
    Author:
    Walshy
    • Field Detail

      • SEMICOLON

        public static final Pattern SEMICOLON
      • HASH

        public static final Pattern HASH
      • COMMA

        public static final Pattern COMMA
      • SLASH_SEPARATOR

        public static final Pattern SLASH_SEPARATOR
      • DASH

        public static final Pattern DASH
      • ASCII

        public static final Pattern ASCII
      • ALPHANUMERIC

        public static final Pattern ALPHANUMERIC
      • NUMERIC

        public static final Pattern NUMERIC