D
dje
Regex regex = new Regex("/[a-zA-Z '-]/");
Match match;
match = regex.Match(this.LastName.Text);
if(!match.Success)
{
sb.Append("Last name invalid. ");
returnValue=false;
}
with the input "jones", match.Success always fails. Is there something
wrong with my regular expression or am I not using Regex correctly?
Thanks.
Match match;
match = regex.Match(this.LastName.Text);
if(!match.Success)
{
sb.Append("Last name invalid. ");
returnValue=false;
}
with the input "jones", match.Success always fails. Is there something
wrong with my regular expression or am I not using Regex correctly?
Thanks.