What is the best way to validate that an input actually is an email-address? Using this when signing up a user. I wanted to validate it before I run the API to the database (in order to avoid error message from database).
Lars Hæhre
1 year ago
I ended up creating a custom formula that uses this Regular expression matching: ^[\w-.]+@([\w-]+.)+[\w-]{2,4}$ Looks like it works fine!