I have a regex question, there is field for email of 60 characters. I got the regex working for email validation, but I am not sure how to ignore whitespaces after the email but only upto the whole string is 60 chars. If there is anything after 60 chars then its not valid.
^([A-Za-z0-9!#$%&'*+/=?^_`{|}~-])([A-Za-z0-9.!#$%&'*+/=?^_`{|}~-])*[@]([A-Za-z0-9.\-])([A-Za-z0-9.\-])*[.][A-Za-z.]{2,6}[ \t]+$
This should be a valid string (I am using quotes here to show string length) 'test1.test123@testtesttest.com '
This should not be a valid string 'test1.test123@testtesttest.com m'