Class StringRegexPatterns
Provides regex pattern constants used for string validation and manipulation.
public static class StringRegexPatterns
- Inheritance
-
StringRegexPatterns
- Inherited Members
Fields
AlphaNumeric
Regular expression pattern for alphanumeric strings.
public const string AlphaNumeric = "[a-zA-Z0-9]+"
Field Value
Remarks
Matches strings containing only letters (a-z, A-Z) and digits (0-9). Examples: "abc123", "TestString", "123abc".
CamelCase
Regular expression pattern for camelCase strings.
public const string CamelCase = "^[a-z][A-Za-z0-9]*$"
Field Value
Remarks
Matches strings that start with a lowercase letter followed by any combination of letters and digits. Examples: "camelCase", "myVariable", "test123".
PascalCase
Regular expression pattern for PascalCase strings.
public const string PascalCase = "^[A-Z][A-Za-z0-9]*$"
Field Value
Remarks
Matches strings that start with an uppercase letter followed by any combination of letters and digits. Examples: "PascalCase", "MyClass", "Test123".