https://learn.microsoft.com/en-us/dotnet/api/system.configuration.regexstringvalidator?view=netframework-4.8.1&viewFallbackFrom=net-10.0
RegexStringValidator Class (System.Configuration) | Microsoft Learn
Provides validation of a string based on the rules provided by a regular expression.
class systemconfigurationmicrosoftlearn