How can I check that string name has at least one char, and has no char other than letters and hyphens?
Especially the last part , how to check that it has just letters(either upper case or lower one) and no hyphens?
How can I check that string name has at least one char, and has no char other than letters and hyphens?
Especially the last part , how to check that it has just letters(either upper case or lower one) and no hyphens?