Skip to content

Instantly share code, notes, and snippets.

View banderson19's full-sized avatar
🎯
Focusing

Bradford Anderson banderson19

🎯
Focusing
View GitHub Profile
@banderson19
banderson19 / gistemail.md
Last active August 19, 2021 18:00
Gist explaining email regex

Email regex explained

This gist is a class assignment designed to help understand more of what regular expressions are how they are useful in the dev ops world.

Summary

The email regex is a commonly used to verify if the user has inputed an email in the right syntax. Below you'll find what each character means and how the code is read for it to be executed correctly. /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ is the regex. Briefly looking at it now, you may be able to see and possibly figure out it makes sense and is executed.

Table of Contents

Title (replace with your title)

Introductory paragraph (replace this with your text)

Summary

Briefly summarize the regex you will be describing and what you will explain. Include a code snippet of the regex. Replace this text with your summary.

Table of Contents

# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help