only number c#
https://uibakery.io/regex-library/numbers-only-regex-csharp
Regex regex = new Regex("^\\d+$");
var resultText = regex.IsMatch(dto.PhoneNumber);
if (!resultText) {
results.Add("Only number in phone number");
}
only number c#
Reviewed by Leo
on
September 21, 2022
Rating:
Tidak ada komentar