mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
19 lines
624 B
C#
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();
|
|
}
|
|
}
|