Need a regular expression to check if webpage has special characters in the comments field. Comments should only have characters,numbers and @ = - ' " . i inside the comments. I am using C#.net to check it
THis is the code I have and it does not work
if (!Regex.IsMatch(comments.Text,@"^[a-zA-Z''-'\s]$"))
{
lblError.Text = "Please Check your Comment.";
return false;
}