I've got a basic email regular expression, however I have a requirement that the it also validates the length of characters is not more that 254 (as per email standards?
How would I make sure that it does not match emails longer than 254 characters long?
^[_A-Za-z0-9-+]+(\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,})$