Apq.Cfg.Database.SqlSugarDatabaseProvider.SafeIdentifierRegex().md 936 B

Apq.Cfg.Database.SqlSugarDatabaseProvider

SqlSugarDatabaseProvider.SafeIdentifierRegex() Method

private static System.Text.RegularExpressions.Regex SafeIdentifierRegex();

Returns

System.Text.RegularExpressions.Regex

Remarks

Pattern:

^[a-zA-Z_][a-zA-Z0-9_]*$


Options:

RegexOptions.Compiled


Explanation:

○ Match if at the beginning of the string.<br/>
○ Match a character in the set [A-Z_a-z].<br/>
○ Match a character in the set [0-9A-Z_a-z] atomically any number of times.<br/>
○ Match if at the end of the string or if before an ending newline.<br/>