Regular Expressions in JavaScript – Master Course and Projects

Video description

Create simple to complex regular expressions in JavaScript using practical examples and real-world problems

About This Video

  • Use grouping, capture groups, and backreferencing to create updated and accurate regex patterns
  • Discover the latest updates in ES6, ES7, and ES8+ for regular expressions in JavaScript
  • Take pattern matching to the next level by learning the different options available in JavaScript regex

In Detail

Regular expressions are an essential part of problem solving in computer science. It can be tricky to learn if you don't approach the topic right. This course breaks down regular expressions into manageable parts so that you can learn them quickly and retain the concepts for much longer. This course is useful for both JavaScript programmers and programmers of other languages because it focuses on the core concepts of regular expressions before teaching you how to apply them in JavaScript. You'll also learn the sheer power of regular expressions used in combination with the powerhouse that is the JavaScript language. Add the latest ECMAScript updates to the mix, and you end up with something that is unparalleled in other languages. Every concept is explained using a wealth of examples to help you understand the concepts better.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction
    1. Introduction 00:03:01
    2. An Introduction to creating regular expressions 00:11:16
  2. Chapter 2 : Using Regular Expressions in JavaScript
    1. Basic regex pattern 00:04:40
    2. Test method in JavaScript 00:07:37
    3. Match method in JavaScript 00:04:23
    4. Regular expression modifiers/flags part 1 00:04:32
    5. Regular expression modifiers/flags part 2 00:02:48
    6. Using regular expressions in search and replace functions 00:09:36
  3. Chapter 3 : Brackets and range of characters - advanced patterns
    1. Brackets with characters and numbers list 00:12:17
    2. Number ranges within brackets 00:05:12
    3. Alphabet ranges within brackets 00:06:46
    4. Using pipe characters to specify options 00:08:14
    5. Carot symbol to exclude characters 00:10:59
    6. Multiples of the same alphabets/numbers/characters 00:04:02
  4. Chapter 4 : Metacharacters - Enhance your regular expressions
    1. Wildcard character 00:07:35
    2. Word character 00:05:17
    3. Digits character 00:09:02
    4. Beginning & Ending of the word character 00:05:32
  5. Chapter 5 : Anchors and Quantifiers
    1. Start & end anchors and strings with just that pattern 00:11:55
    2. Quantifiers part 1 00:06:47
    3. Quantifiers part 2 00:10:44
    4. Quantifiers part 3 00:07:13
  6. Chapter 6 : Literal/special characters
    1. Matching literal or special characters 00:11:13
  7. Chapter 7 : RegExp objects, properties and methods
    1. RegExp to create regular expressions 00:07:01
    2. RegExp properties 00:10:36
    3. S flag - ES2018 update 00:03:08
    4. DotAll property - ES2018 update 00:03:08
    5. RegExp methods 00:07:36
  8. Chapter 8 : Lazy and greedy matches
    1. Greedy matching explained 00:06:56
    2. Lazy matching - why do you need it and how to activate it 00:07:21
    3. When do you not need lazy matching? 00:02:58
  9. Chapter 9 : Grouping and Capture groups
    1. Grouping in JavaScript Regex 00:04:35
    2. Get a part of the capture group as separate matches in an array 00:09:08
    3. Nested capture groups 00:06:46
    4. Named capture groups 00:09:44
    5. Using capture groups in search and replace functions 00:03:34
    6. Non-capturing parentheses 00:06:07
    7. Backreferencing a group 00:05:57
  10. Chapter 10 : Lookaheads and Lookbehinds
    1. Positive and negative lookaheads 00:04:52
    2. Positive and negative lookbehinds 00:02:41
  11. Chapter 11 : Real world projects
    1. Project #1 - Remove extra spaces from start & end of a string 00:03:50
    2. Project #2 - E-mail validation 00:09:13
    3. Project #3 - Mobile number validation 00:07:46

Product information

  • Title: Regular Expressions in JavaScript – Master Course and Projects
  • Author(s): Aarthi Elumalai
  • Release date: May 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781800563544