diff --git a/xml/System.ComponentModel.DataAnnotations/RegularExpressionAttribute.xml b/xml/System.ComponentModel.DataAnnotations/RegularExpressionAttribute.xml index 1792f982775..8643b7153f8 100644 --- a/xml/System.ComponentModel.DataAnnotations/RegularExpressionAttribute.xml +++ b/xml/System.ComponentModel.DataAnnotations/RegularExpressionAttribute.xml @@ -199,18 +199,17 @@ The regular expression searches for an exact match, not using `^` before and `$` The data field value to validate. - Checks whether the value entered by the user matches the regular expression pattern. + Converts the value entered by the user to a string using with and matches it with the regular expression pattern. If is null, or is converted to a null or empty string then it is considered valid. - if validation is successful; otherwise, . + if validation is successful - or if is null, or is converted to an empty string; otherwise, . - The data field value did not match the regular expression pattern. - The current attribute is ill-formed. + is null or empty. - is not a valid regular expression. + is not a valid regular expression (directly thrown from 's constructor).