RustyHearts-Launcher/RHLauncher.Helper/RegexPatterns.cs
2024-01-04 22:59:30 -03:00

19 lines
624 B
C#

using System.Text.RegularExpressions;
namespace RHLauncher.RHLauncher.Helper
{
public static partial class RegexPatterns
{
[GeneratedRegex(@"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$")]
public static partial Regex EmailRegex();
[GeneratedRegex("^(?=.*[a-z])[a-z0-9]+$")]
public static partial Regex UsernameRegex();
[GeneratedRegex("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).+$")]
public static partial Regex PWRegex();
[GeneratedRegex("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^\\da-zA-Z]).+$")]
public static partial Regex StrongPWRegex();
}
}