This is the regex to validate email address in javascript,I\'m not sure if I can just use it directly in PHP:
/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^_`{