I have the following Regex-pattern: "[A-TVWZ]". I need it to accept also Empty strings "", how can I insert that in my pattern? I need it for my DataGridView, because when the User leaves the cell without writing anythig it gets an error in validating…
I have the following Regex-pattern: [A-TVWZ] . I need it to accept also Empty
Share
Maybe this is too simple; I would check for empty strings without regular expressions.
E.g.:
See:
String.IsNullOrEmptymethod.Regex.IsMatchmethod.