I have an email field that's optional. The regex works fine accepting the empty string (^$) but now the issue is that the empty string is considered a unique entry. It will only allow one user to register without entering an email address. I know I have to set it to null, but not sure how.
Something like this:
null
would work? If so, why aren't you doing that then? – Merilynmeringue