HomeCoursesJavaScript Regular Expressions in Detail
AI-powered learning
Save

JavaScript Regular Expressions in Detail

Explore JavaScript regular expressions: learn about regex history, create patterns with special characters, parse data, and match passwords/emails, gaining comprehensive text processing skills.

5.0
39 Lessons
3h
Updated 1 month ago
Join 3 million developers at
Join 3 million developers at
LEARNING OBJECTIVES
  • Identify regex history, key terms, and types (POSIX vs PCRE) used in JavaScript
  • Define JavaScript regex using literals and RegExp objects, selecting the right approach
  • Construct patterns with classes, quantifiers, groups, anchors, and lookarounds
  • Apply regex flags to control global, case-insensitive, multiline, Unicode, and sticky matching
  • Use RegExp methods and lastIndex (exec, match, matchAll, split) to extract match data
  • Parse real text into structured outputs (phrases to arrays, dates to Date objects) with regex
  • Implement and test regex for URL, email, and password matching and complex replacements

Learning Roadmap

39 Lessons3 Quizzes1 Challenge

1.

The Beginning of Regular Expressions

The Beginning of Regular Expressions

Get familiar with JavaScript regular expressions, their standards, history, and practical uses.

3.

The RegExp Object

The RegExp Object

6 Lessons

6 Lessons

Break apart the versatile use of the RegExp object for dynamic expressions.

4.

Thinking in Regular Expressions

Thinking in Regular Expressions

8 Lessons

8 Lessons

Enhance your skills in applying regular expressions for dynamic searches, parsing dates, and puzzles.

5.

Regular Expressions in the Wild

Regular Expressions in the Wild

6 Lessons

6 Lessons

Map out the steps for practical applications of regular expressions in password and email validation, and text transformations.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Fahim Ul HaqJavaScript Regular Expressions inDetailFounder & CEO
Developed by MAANG Engineers
ABOUT THIS COURSE
Regular Expressions, also known as Regex, come in handy in a multitude of text processing scenarios. Regex defines a search pattern using symbols and allows you to find matches within strings. The applications of this span from software engineering to data science and beyond. In this course, you will begin with an introduction to regex, its history, and various types of regular expressions. You will then learn how to create your own regular expressions using various techniques and special characters. In the latter half of the course, you will explore RegExp Objects, how to parse data, turn phrases into an array of strings, and lastly password and email pattern matching. By the end of this course, you will be a regular expressions expert.
ABOUT THE AUTHOR

Fernando Doglio

Author of several JavaScript-related books, maker of software products since 2004 and all around geek.

Learn more about Fernando

Trusted by 3 million developers working at companies

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by Doing
Learn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by Doing