类 RegexParser
- java.lang.Object
-
- com.alibaba.nacos.config.server.utils.RegexParser
-
public class RegexParser extends java.lang.ObjectGeneric classes for wildcard characters, decisions, and standard canonical transformations that can be supported by ConfigCenter.- 作者:
- tianhu E-mail:
-
-
字段概要
字段 修饰符和类型 字段 说明 private static charQUESTION_MARK
-
构造器概要
构造器 构造器 说明 RegexParser()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static booleancontainsWildcard(java.lang.String regex)private static java.lang.BooleanisAsciiAlphaLower(char ch)private static java.lang.BooleanisAsciiAlphanumeric(char ch)private static java.lang.BooleanisAsciiAlphaUpper(char ch)private static java.lang.BooleanisAsciiNumeric(char ch)static java.lang.StringregexFormat(java.lang.String regex)Replace input string non-regular special characters with standard regular expression strings; Replace '*' with '.* '?
-
-
-
字段详细资料
-
QUESTION_MARK
private static final char QUESTION_MARK
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
regexFormat
public static java.lang.String regexFormat(java.lang.String regex)
Replace input string non-regular special characters with standard regular expression strings; Replace '*' with '.* '? 'is replaced by '{n}', n is the number of consecutive ?; Other special characters that are not alphabetic or numeric are preceded by '\'.- 参数:
regex- The expression to be formatted- 返回:
- format content.
-
containsWildcard
public static boolean containsWildcard(java.lang.String regex)
-
isAsciiAlphanumeric
private static java.lang.Boolean isAsciiAlphanumeric(char ch)
-
isAsciiNumeric
private static java.lang.Boolean isAsciiNumeric(char ch)
-
isAsciiAlphaUpper
private static java.lang.Boolean isAsciiAlphaUpper(char ch)
-
isAsciiAlphaLower
private static java.lang.Boolean isAsciiAlphaLower(char ch)
-
-