When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

SkillShare logo

Mastering Regular Expressions in JavaScript

Unlock creativity with Skillshare! Learn acrylic painting, AI writing, graphic design, and photography.

     
  • 5
  •  |
  • Reviews ( 934 )
Free

This Course Includes

  • iconskillshare
  • icon5 (934 reviews )
  • icon5 hours 19 minutes
  • iconenglish
  • iconOnline - Self Paced
  • iconcourse
  • iconSkillShare

About Mastering Regular Expressions in JavaScript

Introduction

A Short History on Regular Expressions

Getting Started

Using Regular Expressions in JavaScript

Understanding Regular Expression Flags

Using Regexpal

Understanding Metacharacters

Using the Wildcard

Escaping Metacharacters

Matching Control Characters

Exercise 1 Start

Exercise 1 Finish

Using Character Sets

Specifying a Range in a Character Set

Excluding a Character Set

Escaping Metacharacters in a Character Set

Using Shorthand for Character Sets

Exercise 2 Start

Exercise 2 Finish

Using Repititions in Your Pattern

Understanding Greediness and Laziness

Specifying a Repetition Amount

Revisiting Greedy and Lazy Concepts

Exercise 3 Start

Exercise 3 Finish

Understanding Anchored Expressions

Using Start and End Anchors

Using the Multi-line Flag

Working with word Boundaries

Writing Accurate Regular Expressions

Exercise 4 Start

Exercise 4 Finish

Specifying Options

Using Grouping

Using Grouping with JavaScript

Understanding Capturing Groups

Understanding Group Back References

Using Lookahead Groups

Using Negative Lookahead Groups

Exercise 5 Start

Exercise 5 Finish

Introducing Unicode

Using Unicode Characters

Understanding ES6 Unicode Features

Applying Regular Expressions

Matching an Email Address

Matching a Twitter Handle

Testing Passwords

Using Replace with Regular Expressions

Matching a Word Next to Another Word

Validating Dates

Capturing Matched Text

Discovering Information about a Match

Iterating over Matches

Conclusion

What You Will Learn?

  • Regular expressions can help you more easily solve programming problems. They are an important tool in your coding toolbox. If you have dabbled with regular expressions or not even used them before, this course is for you. You will learn the syntax and participate in numerous examples and exercise to help you integrate regular expressions into your JavaScript coding..
  • In Mastering Regular Expressions in JavaScript we focus on two main goals: Helping you learn regular expressions and how to construct them, and teaching you the powerful ways regular expressions can be used in JavaScript. If you work in the JavaScript language, this course will be most useful, but even if you work in another language you can use this course to learn about regular expressions as the syntax applies to many programming languages..
  • If you are ready to master regular expressions, this course is for you!.