I'm new to regex and not sure how each part of the below breaks down to testing for email, especially the !
at beginning and the ._%+0-
!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(values.email)
I'm new to regex and not sure how each part of the below breaks down to testing for email, especially the !
at beginning and the ._%+0-
!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(values.email)