Learn Regular Expressions

Unlock Course

Join 4647 other students

Sign in to get
Access to 30+ free courses
New courses added monthly
Weekly coding challenges
Huge discord community
Exclusive chat access
Unlock Course
Subscribe to access!62% covid discount
Get access to this course and ALL other Scrimba courses at great value. Our 30-day money back guarantee makes this risk free for you.
Career Path includes
75+ hours of content
100s of coding challenges
Exclusive Study Group access
HTML, CSS, JS & React
Getting Hired section
30-day money-back guarantee
Subscribe now!62% covid discountSubscribe to access with 62% covid discount.
The course creator freeCodeCamp

with freeCodeCamp

4647 students enrolled

Course level: Intermediate

This tutorial teaches you regex in JavaScript through 34 screencasts. It explains regular expressions step-by-step from basic to advanced so that you don't fall off along the way. This ensures that you finally learn regex once and for all.

What's inside

This course contains 35 interactive screencasts

two girls
Learn Regular Expressions
35 lessons - 45 min
1. Regular Expressions Intro
1:18
2. Regex Tutorial: Using the Test Method
1:08
3. Introducing The Frontend Developer Career Path
1:10
4. Regex Tutorial: Match Literal Strings
0:38
5. Regex Tutorial: Match a Literal String with Different Possibilities
0:45
6. Regex Tutorial: Ignore Case While Matching
0:56
7. Regex Tutorial: Extract Matches
0:44
8. Regex Tutorial: Find More Than the First Match
1:39
9. Regex Tutorial: Match Anything with Wildcard Period
1:34
10. Regex Tutorial: Match Single Character with Multiple Possibilities
1:16
11. Regex Tutorial: Match Letters of the Alphabet
0:47
12. Regex Tutorial: Match Numbers and Letters of the Alphabet
1:07
13. Regex Tutorial: Match Characters that Occur One or More Times
1:13
14. Regex Tutorial: Match Characters that Occur One or More Times
0:43
15. Regex Tutorial: Match Characters that Occur Zero or More Times
1:10
16. Regex Tutorial: Find Characters with Lazy Matching
3:17
17. Regex Tutorial: Find One or More Criminals in a Hunt
1:02
18. Regex Tutorial: Match Beginning String Patterns
0:52
19. Regex Tutorial: Match Ending String Patterns
0:44
20. Regex Tutorial: Match All Letters and Numbers
1:04
21. Regex Tutorial: Match Everything But Letters and Numbers
0:44
22. Regex Tutorial: Match All Numbers
0:28
23. Regex Tutorial: Match All Non-Numbers
0:32
24. Regex Tutorial: Restrict Possible Usernames
2:45
25. Regex Tutorial: Match Whitespace
0:26
26. Regex Tutorial: Match Non-Whitespace Characters
0:28
27. Regex Tutorial: Specify Upper and Lower Number of Matches
1:11
28. Regex Tutorial: Specify Only the Lower Number of Matches
0:29
29. Regex Tutorial: Specify Exact Number of Matches
0:33
30. Regex Tutorial: Check for All or None
0:48
31. Regex Tutorial: Positive and Negative Lookahead
3:30
32. Regex Tutorial: Reuse Patterns Using Capture Groups
5:04
33. Regex Tutorial: Use Capture Groups to Search and Replace
2:55
34. Regex Tutorial: Remove Whitespace from Start and End
2:05
35. Regex Tutorial: Regular Expressions Outro
0:17

You'll learn

Regex basics
Test matches
Literal strings
Case insensitive
Single character
Match letters
Match numbers
Single match
Multiple matches
Wildcards
Lazy matching
Begins with match
Ends with match
Inclusive match
Exclusive match
Whitespace match
Lookahead
Capture groups
man

Prerequisites

Before taking this course, you should have a basic understanding of JavaScript. Here’s our suggested resource to get you up to speed.

The course creator

Meet your teacher

freeCodeCamp

freeCodeCamp is a community that helps you learn to code, then get experience by contributing to open source projects used by nonprofits. Their Scrimba sceencasts are recorded by their brilliant instructor Beau Carnes and are based on their core curriculum.

Follow me on twitter

Why this course rocks

This course features freeCodeCamp's Regular Expressions curriculum recorded as Scrimba screencasts. It introduces you to regular expressions (also called regex or regexp) through the lens of JavaScript. And as this is a Scrimba course, you'll be able to experiment with the expressions whenever you want. This is crucial when learning regex, as there are a lot of details to remember. Interacting with the code makes the knowledge stick, as opposed to simply watching normal video tutorials.

About freeCodeCamp

The lectures are recorded by Beau Carnes. Beau is the man behind some of the most popular courses at freeCodeCamp's YouTube channel, so you'll be in good hands. He explains concepts clearly and thoroughly, but without wasting your time.

Join the Scrimba community chat

Learning alone can be lonely. Click here to join our Discord server and connect with other Scrimba learners!

Go Pro!Sign me up!
Built with Imba