
Master regular expressions in JavaScript by learning core concepts, creating patterns from simple to complex, and applying look ahead, look behind, anchors, groups, and Unicode in real-world string operations.
Master the basics of regular expressions and cross-language patterns. Learn to test expressions on regex101.com and apply global and case-insensitive flags in JavaScript for robust string matching.
Master basic regex patterns in JavaScript using two forward slashes, test for spaces and characters, and retrieve matches; learn about global and case-insensitive flags in future lessons.
Explore the JavaScript regex test and match methods to validate strings, check pattern matches, and understand case sensitivity and flags for robust password and email validation.
Explore how the match method returns an array of matches from a string using a regex, contrasting with the test method, and note that the global flag yields multiple matches.
Explore regular expression modifiers in JavaScript, including the global g, case-insensitive i, and multi-line M flags, and observe that match can return all instances as an array.
Explore the multiline (m) flag in JavaScript regular expressions, how it matches across lines, and how it interacts with first-match behavior, global, and case-insensitive flags.
Master using regular expressions in JavaScript search and replace functions to find and replace all instances, with global and case-insensitive patterns, beyond literal strings.
Learn to build advanced regular expressions with bracket notation and character ranges, enabling multi-option matches, case-insensitive and global patterns, for matching words, numbers, phone numbers, and email addresses.
Master using number ranges inside brackets in JavaScript regex to match numbers starting with 1 and ending with 3, using 0-9 or 3-5 ranges to save space.
Master JavaScript regular expressions with alphabet ranges inside brackets to match letters. Combine ranges with explicit characters and use i and g flags for precise letter and digit matching.
Explore how to use the pipe character to specify options in regular expressions, including parentheses, brackets, and flags, with JavaScript and TypeScript examples.
Explore how to exclude characters in JavaScript regex using a negated character class with a caret inside square brackets, applying ranges, digits, spaces, and case considerations.
Learn to build three-character regex patterns that match two digits and one letter, using separate character classes for each position and discussing digit ranges and case sensitivity.
Master the wildcard character in JavaScript regular expressions (the dot), which matches any single character except newline, and use it with other metacharacters to match digits, letters, spaces, or symbols.
Explore word characters in JavaScript regular expressions with \w, matching letters, digits, and underscores, while excluding spaces and punctuation, and contrast with \W for non-word characters like hyphens and newlines.
Master the digit character in javascript regular expressions, using \\d for digits, \\D for non-digits, and \\s and \\S for whitespace and non-whitespace, with practical examples.
Learn how to use the beginning and ending word boundary with regular expressions, using \b to match starts and ends, including case-insensitive matching.
Master JavaScript regular expressions by using start and end anchors to enforce exact patterns, enabling password, username, and email validation with precise, comprehensive string matching.
Explore quantifiers in regular expressions to simplify patterns in javascript, including plus, zero or more, optional, and exact repetition with braces, illustrated with underscores, letters, and digits.
Explore quantifiers in regular expressions, mastering star, plus, and zero-or-more patterns, optional elements, brackets and character classes to build strings that start with an underscore and end with a digit.
Master javascript regular expression quantifiers by learning to specify exact, range, and infinite repetitions with curly braces, including two to three letters followed by three to five digits.
Master matching literal and special characters in JavaScript regular expressions, escape with backslashes, and use patterns for equations and parentheses, including Unicode and the u flag.
Learn to create regular expressions in JavaScript using the RegExp object or the new RegExp constructor, specify flags, and build patterns like two numbers followed by two to three letters.
Explore the properties of regular expressions in JavaScript, including the constructor property, global flag, ignore case, multi line flag, lastIndex, and source.
Explore the s flag in ES2018, enabling the dot to match newline characters in JavaScript regular expressions, and see its practical effect with test examples.
Learn how the dot all property in es2018 updates regular expressions to control whether the dot matches line terminators by toggling the s flag, with practical examples.
Explore RegExp methods such as test, toString, and exec by creating a RegExp with new RegExp('[CMR]80','gi'), and observe how toString returns the pattern and exec yields the first match.
Explore greedy and lazy regex matching in JavaScript, showing how default greediness yields the maximum match and how lazy mode returns the minimum, with capturing groups and string.match examples.
Discover lazy matching versus greedy in regular expressions and how to activate it after the quantifier with a question mark. Explore when to apply lazy mode and practical alternatives.
Explain when to avoid lazy matching by contrasting greedy and lazy regex behavior on a phone number pattern, noting greedy captures the full sequence and lazy stops early.
Explore grouping in JavaScript regular expressions and learn how capture groups let you apply quantifiers to multiple characters by enclosing them in parentheses and repeating with one or more times.
Learn to extract parts of capture groups in JavaScript using the match method without the global flag, retrieving full matches and each capture group's contents as separate items.
Explore nested capture groups in JavaScript expressions, learning how parentheses create captured groups, repetition with one or more and zero or more, and matching sequences of numbers separated by spaces.
Name capture groups immediately after an opening parenthesis and reference them later in code. Use these named groups to output individual parts of a complex pattern, like a phone number.
Learn how to create and reference capture groups in JavaScript search and replace operations, using dollar notation (e.g., $1, $2) to reorder names like Jane Doe.
Explore non capturing parentheses in JavaScript regex and how they exclude a capture group from results. See how the full match remains, while specific groups are not captured.
Explore positive and negative lookaheads and lookbehinds in JavaScript regular expressions, using examples to match numbers followed by specific sequences and exclude unwanted patterns.
Explore positive and negative look behind patterns in javascript regular expressions, matching only when preceded by tokens like a dollar sign or numbers, including nested look behinds and look ahead.
Regular expressions are an essential part of problem solving in computer science. They can be tricky to learn if you don't approach the topic right.
In this course, we hope to break down the regular expressions into manageable parts so you can learn them fast and retain the concepts much longer.
This course will be useful for both Javascript programmers and programmers of other programming languages because we focus 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 the other languages.
Every concept is taught through a wealth of over-the-shoulder examples so you understand the concepts better.
What will you learn in our course?
1. Learn the core concepts of regular expressions - how they work, how to create them and how to apply them
2. Learn how to apply the regular expression concepts you learn in Javascript programming
3. Learn how to create all kinds of regular expressions - from simple to very complicated patterns
4. Take pattern matching to the next level by learning the various options you have in Javascript regex
5. Learn how to use brackets, metacharacters and character ranges and sets to create advanced regex patterns
6. Learn how to test regular expressions and use them in appropriate string and regex methods in Javascript
7. Learn the simplicity of lazy and greedy matching
8. Learn how to use grouping, capture groups and backreferencing to create updated, and accurate regex patterns of this decade
9. Learn how to use lookaheads, lookbehinds, anchors and unicode properly
10. Learn the latest ES6, 7 and 8+ updates of Javascript regular expressions.
How is this course designed?
Our course has 4 modules, where each module will thoroughly explain the intricacies of one of the concepts in Regular expression (with Javascript) with a wealth of over-the-shoulder examples.
We'll be using a real world example to explain the concepts.
Here are the modules:
Module 1 - Introduction - This is the foundations module. We'll look into what regular expressions are, how to create very basic expressions and test them without using any code.
Module 2 - Using regular expressions in Javascript - In this module, you'll learn how to apply what you learned in the last module to Javascript. You'll also learn about various methods you can use to test regular expressions in Javascript, and we'll end the module with lessons on regex modifiers/flags.
Module 3 - Brackets, character ranges, sets & more - In this module, we'll look at creating more complicated regular expressions using brackets, character ranges, sets, pipe symbol for options, character set exclusion and so much more.
Module 4 - Metacharacters - In this module, you'll learn how to enhance your regular expressions with metacharacters that can be used to specify words, digits, whitespaces and more.
Module 5 - Anchors and Quantifiers - In this module, you'll learn how to further perfect your regular expressions by quantifying your characters and sets and adding anchors.
Module 6 - Literal/special characters - In this module, you'll learn how to specify special characters used elsewhere in regex literally as part of a pattern.
Module 7 - RegExp object, properties and methods - In this module, you'll learn how to create the same regular expressions with the RegExp object and apply the various properties and methods that come along with it.
Module 8 - Lazy and Greedy matching - In this module, you'll learn how to use lazy matching to simplify pattern matching in specific cases.
Module 9 - Grouping and Capture groups - In this module, you'll learn how to create capture groups to get parts of matches, backreference them and so much more.
Module 10 - Lookaheads and Lookbehinds - In this module, you'll learn how to use literally look ahead or behind a string before creating a match.
We also cover a lot of examples and real world projects, including:
1. Project #1 - Remove extra spaces from start & end of a string - Trim a string without using Trim().
2. Project #2 - E-mail validation
3. Project #3 - Mobile number validation
Why should you choose our course?
1. We like to be thorough in our teaching. You'll find everything you need to start creating complicated regular expression patterns. You won't have to look anywhere else.
2. We strongly advocate learning by doing, rather than just listening or reading. Our lectures are filled with a wealth of examples that explain every concept clearly.
3. If you follow along with our examples in our over-the-shoulder trainings, and create our examples with us, you'll have a thorough understanding of what regular expressions are, and how they work in Javascript. You'll be able to confidently add this as a skill in your resume.
4. We prefer creating fun projects to explain the concepts and to keep things interesting as well. You'll learn how to apply the concepts you learn in the course in the real world projects and examples.
So, what are you waiting for? Enroll now and start creating complicated, yet accurate regex patterns that can be used in real world pattern matching scenarios in no time at all!