<div dir="ltr">Hello All,<br>     I just realized that PatternValidator checks if the String passed to it is null or not before checking it&#39;s validity, but it doesn&#39;t check if the String is empty. What if someone wants to put a regular expression constraint on a non mandatory field, and the framework he uses sets this empty field to an empty string? What do you think?<br>
<br>Regards<br>Alaa Nassef<br></div>