Проверка минимального 10 значного номера телефона и пользователь должен иметь возможность ввести запятую и второй номер если это применимо
Validation for minimum 10 digits phone number and user should able to enter comma and second number if applicable i.e we have string field "onsite contact Number" in that user should enter minimum 10 digits phone number and user should able to enter comma and second number if applicable
Что я уже пробовал:
I have tried by using regex i.e /^\d{10}(?:,\d{10})*$/ but this is only for 10 digits , i need for minimum 10 digits , i don't have an idea on regular expression please help me with that.