Monday, March 12, 2012

Regular expression for special character in C#

Regex reg = new Regex("[~#%&;*{}\\:<>?/\"|$]+");
 if (reg.IsMatch(TxtBox.Text.Trim()))
{
//Error Msg
}

No comments:

Post a Comment

SharePoint document metadata not updating

I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...