An open-source cms I'm working on uses the following regex for validating emails:
valid_regex=^[_a-z0-9-]+(.[_a-z0-9-]+)@[a-z0-9-]+(.[a-z0-9-]+)(.[a-z]{2,3})$
and I need to validate also the length of the email address before the '@' symbol to accept emails with at least 2 characters.. I've read that using {2,} will do the trick but where and how exactly should I use it?......