Regex in Javascript

Regular expressions are a useful tool for dealing with text data. They allow us to slice and dice strings, and useful extract information in our applications.

Regex is also complex, and many developers will spend their entire career looking up even the most trivial of regex operations.

This course will help improve your regex skills, and teach a solid core of useful tools that you can use every day with confidence!

Watch User Created Playlist (10)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Get Started with Regular Expressions in JavaScript

Find Plain Text Patterns using Regular Expressions

P

Use Regular Expressions to Find Repeated Patterns

P

Use Character Classes in Regular Expressions

P

Use Shorthand Regular Expression Character Classes

P

Create Capture Groups in Regular Expressions

P

Use Lookaheads in Regular Expressions

P

Find the Start and End of Words with Regular Expression Word Boundaries

P

Match the Same String Twice with Backreferences in Regular Expressions

P

Find Patterns at the Start and End of Lines with Line Anchors in Regular Expressions

P
javascript tutorial about Get Started with Regular Expressions in JavaScript

Get Started with Regular Expressions in JavaScript

6:00 javascript

In this lesson we'll learn two ways to construct a Regular Expression in Javascript, explore the methods available to us directly from the RegExp constructor, use Regular Expressions with String.prototype methods, and build a simple regex highlighter.

javascript tutorial about Find Plain Text Patterns using Regular Expressions

Find Plain Text Patterns using Regular Expressions

2:29 javascript PRO

The simplest use of Regular Expressions is to find a plain text pattern. In this lesson we'll look at at finding plain text patterns as well as using the metacharacter "." and how to escape a metacharacter.

javascript tutorial about Use Regular Expressions to Find Repeated Patterns

Use Regular Expressions to Find Repeated Patterns

3:53 javascript PRO

Regular Expression Quantifiers allow us to identify a repeating sequence of characters of minimum and maximum lengths. In this lesson we'll use Regular Expression Quantifiers to match repeated patterns, common Quantifier patterns, and using shorthand for those common Quantifier patterns.

javascript tutorial about Use Character Classes in Regular Expressions

Use Character Classes in Regular Expressions

2:41 javascript PRO

Regular Expression Character Classes define a group of characters we can use in conjunction with quantifiers.

javascript tutorial about Use Shorthand Regular Expression Character Classes

Use Shorthand Regular Expression Character Classes

1:42 javascript PRO

In this lesson we'll learn shorthands for common character classes as well as their negated forms.

javascript tutorial about Create Capture Groups in Regular Expressions

Create Capture Groups in Regular Expressions

4:35 javascript PRO

In this lesson we'll capture groups of characters we wish to match, use quantifiers with those groups, and use references to those groups in String.prototype.replace.

javascript tutorial about Use Lookaheads in Regular Expressions

Use Lookaheads in Regular Expressions

1:27 javascript PRO

Lookaheads allow us to match a pattern followed by another pattern without including the second pattern in our match.

javascript tutorial about Find the Start and End of Words with Regular Expression Word Boundaries

Find the Start and End of Words with Regular Expression Word Boundaries

2:18 javascript PRO

Regular Expression Word Boundaries allow to perform "whole word only" searches within our source string.

javascript tutorial about Match the Same String Twice with Backreferences in Regular Expressions

Match the Same String Twice with Backreferences in Regular Expressions

3:31 javascript PRO

Regular Expression Backreferences provide us a method to match a previously captured pattern a second time.

javascript tutorial about Find Patterns at the Start and End of Lines with Line Anchors in Regular Expressions

Find Patterns at the Start and End of Lines with Line Anchors in Regular Expressions

3:19 javascript PRO

We can identify the start and end of a line using Line Anchors. When dealing with multiple line matches we can utilize the multiline regular expression flag.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?