i need a regex formula for E-mail with blank data

0
hello All,   I need a Regex for Email with considering Blank input field,   actually, I have a form,in which we have  2 email input fields , I want to add value in one field and other one I need pass it as blank, so it should consider the blank value   
asked
1 answers
0

Hi,

Regular expression that allows either a valid email or a blank input

^$|^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$

 

answered