Skip to content

Instantly share code, notes, and snippets.

View MohamedMesahel's full-sized avatar

Mohamed Mesahel, PMP MohamedMesahel

  • Seattle, WA
View GitHub Profile
@MohamedMesahel
MohamedMesahel / Regex-Tutorial.md
Last active September 11, 2021 00:21
Regex Tutorial - JavaScript

Regex Tutorial - JavaScript

If you have encounter Regular Expressions, they may seem like a random string of gibberish. While they might look awkward (confusing syntax), they are also extremely useful. Understanding regular expressions will make you a much more effective programmer. In order to fully understand the regex world you first need to learn the basics concepts, on which you can later build.

A regular expression is a string that describes a pattern e.g., email addresses and phone numbers. In JavaScript, regular expressions are objects. JavaScript provides the built-in RegExp type that allows you to work with regular expressions effectively.

Summary