### [Apq\.Cfg\.Database](Apq.Cfg.Database.md 'Apq\.Cfg\.Database').[SqlSugarDatabaseProvider](Apq.Cfg.Database.SqlSugarDatabaseProvider.md 'Apq\.Cfg\.Database\.SqlSugarDatabaseProvider') ## SqlSugarDatabaseProvider\.SafeIdentifierRegex\(\) Method ```csharp private static System.Text.RegularExpressions.Regex SafeIdentifierRegex(); ``` #### Returns [System\.Text\.RegularExpressions\.Regex](https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex 'System\.Text\.RegularExpressions\.Regex') ### Remarks Pattern:
```csharp ^[a-zA-Z_][a-zA-Z0-9_]*$ ```
Options:
```csharp RegexOptions.Compiled ```
Explanation:
```csharp ○ Match if at the beginning of the string.
○ Match a character in the set [A-Z_a-z].
○ Match a character in the set [0-9A-Z_a-z] atomically any number of times.
○ Match if at the end of the string or if before an ending newline.
```