Dynamic Form Validation Blazor project. Dynamic Validation blazor proper and short example.
bool isEmail = Regex.IsMatch(currentFieldValue, @"\A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\Z", RegexOptions.IgnoreCase);
bool isPhone = Regex.IsMatch(currentFieldValue, @"\+?[0-9]{10}");
Source Code : https://payhip.com/b/bwJv
#blazor #programming #web-development #developer