^[\d\._\w]+$
^[a-zA-Z1-9_\.]+$
Regex regex = new Regex("^[0-9a-zA-Z._]+$"); if(regex.IsMatch(stringToTest)) { // string is OK. } else { // string is not OK. }
Regex checkString = new Regex("^[0-9a-zA-Z._]+$");
Regex checkString = new Regex("[0-9a-zA-Z._]$");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)