Skip to content

Instantly share code, notes, and snippets.

View jgarcia45's full-sized avatar
🎮
Focusing

Juan Garcia jgarcia45

🎮
Focusing
View GitHub Profile
@jgarcia45
jgarcia45 / regex-tutorial.md
Last active June 14, 2022 05:08
Gives a description and example of what Regular Expression (Regex) is and does.

Regular Expression (Regex)

The purppose of this tutorial is to give users information on what Regex is and how to use it. The tutorial will provide a summary as well as detail examples for a specific regex provide.

Summary

Regular Expression, otherwise known as "Regex"; is a sequence of characters that defines a specific search pattern. Regex can be used to find certain patterns of characters within a string. However, Regex is most frequently used to validate inputs from a user. An example is the following Regex provided below.

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

The regex is used to verify that the user input is a valid email address. More details of this Regular Expression will be provided below

@jgarcia45
jgarcia45 / keybase.md
Created August 1, 2020 23:11
Keybase

Keybase proof

I hereby claim:

  • I am jgarcia45 on github.
  • I am jgarcia45 (https://keybase.io/jgarcia45) on keybase.
  • I have a public key ASAAYm6DgjHNCUGSmuKVxErV86D8LcAas0aLM1gxIeYJQAo

To claim this, I am signing this object: