Match Literal Strings, Learn Regular Expressions on freeCodeCamp 2020, Learn JS for Beginners 2020 VIDEO
In this lesson, we continue on our path to understanding regular expressions. In this specific lesson, we continue getting used to the idea of looking within a string for a pattern we specify. In this lesson, we also create a test string variable and a test regular expression variable. We learned in the last lesson that the regular expression uses forward slashes to contain the pattern or regular expression that we want to search for. We then use the test method to test whether or not the pattern is found within our test string. If true is returned then that pattern was found within the test string, if it returns false, then the regular expression was not found within the test string.
Other Videos By We Will Code 2020-01-21 Match Characters that Occur One or More Times,freeCodeCamp Regex Tutorials Javascript, Learn to Code 2020-01-17 Match Single Characters Not Specified, Regular Expression Lesson 2020, freeCodeCamp Tutorial 2020-01-11 Match Numbers and Letters of the Alphabet, Free Regex Course, freeCodeCamp Learn Regular Expressions 2020-01-10 Match Letters of the Alphabet, Regular Expression Patterns, freeCodeCamp Regexes Review 2020-01-08 Match Single Character with Multiple Possibilities, freeCodeCamp Regex Concepts and Challenges 2020-01-07 Match Anything with Wildcard Period, freeCodeCamp's Regex Tutorials 2020, Learn Regular Expressions 2020-01-06 Find More Than the First Match, freeCodeCamp's Regexes Tutor, Regular Expression Help 2020 2020-01-04 Extract Matches Using Regex, freeCodeCamp Regular Expression Help, Learn Regexes 2020-01-03 Ignore Case While Matching, Regular Expressions with JS 2020 Tutorial 2020-01-03 Match a Literal String with Different Possibilities, Learn Regexes on freeCodeCamp, Understanding JS 2020-01-02 Match Literal Strings, Learn Regular Expressions on freeCodeCamp 2020, Learn JS for Beginners 2020 2019-12-31 Regular Expressions, Using the Test Method, freeCodeCamp's Learn Regex Challenges, 2020 Learn Regex 2019-12-31 Introduction to the Regular Expression Challenges, A Regex Tutorial for Beginners, Learn Regex 2020 2019-12-30 Handle a Rejected Promise with catch, Learn ES6 on freeCodeCamp 2020 2019-12-26 Handle a Fulfilled Promise with then, freeCodeCamp's ES6 Challenges 2019-12-23 Complete a Promise with resolve and reject, freeCodeCamp's Learn ES6 Challenges 2019-12-22 Create a Javascript Promise, freeCodeCamp's ES6 Challenges on freeCodeCamp 2019-12-22 Import a Default Export, freeCodeCamp's ES6 Lessons and Explanations 2019-12-21 Create an Export Fallback with export default, freeCodeCamp's ES6 JS Syntax 2019-12-21 Use * to Import Everything from a File, freeCodeCamp 2019-12-21 Reuse Javascript Code Using import, freeCodeCamp's ES6 Challenges, Javascript Help 2020
Tags: regex test
regex test method
testing a regex
the test method
js test method
testing regex