I'm using this regex to validate e-mail addresses, and it works fine. However, it checks for a dot after the @, but that means that it will allow an address like this: [email protected]... I need to change it so that it checks for a dot before the tld - so that -com won't validate:
/[ÆØÅæøåA-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[ÆØÅæøåA-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[ÆØÅæøåA-Za-z0-9-]*[ÆØÅæøåA-Za-z0-9])?\.)+[ÆØÅæøåA-Za-z0-9](?:[ÆØÅæøåA-Za-z0-9-]*[ÆØÅæøåA-Za-z0-9])?/
Anyone knows how to fix that?