I have a regular expression which is satisfying the condition but it is allowing hyphen at the beginning. How to restrict at the beginning. I want the same regular expression with restriction of hyphen at the beginning as it is allowing some other characters which I required.
/^[A-Z0-9-._%+]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
Thanks in advance