Skip to content

Instantly share code, notes, and snippets.

View RubeySchulz's full-sized avatar
🦦

Ruben Schulz RubeySchulz

🦦
View GitHub Profile
@RubeySchulz
RubeySchulz / Email-Regex.md
Last active July 11, 2022 13:50
Email Regex Tutorial

Email Regex Tutorial

This tutorial will be looking into the a Regex (regular expression) created to find any email in a text.

Summary

This regex finds emails, but what is an email actually? An email is defined in this case as characters before an @ symbol, with a domain after the @ symbol. (domain being a .com, .org, etc). The regex looks like this

/^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/