Match Single Character with Multiple Possibilities, freeCodeCamp Regex Concepts and Challenges

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=5w32Yw5gK_8



Duration: 3:19
287 views
3


In this lesson, we look at matching single characters that may have multiple possibilities. This allows us to specify a pattern within a literal pattern we specify. The example we go over explains that, if we wanted to batch the words "bag", "big", and "bug", but not the word "bog", we can ultimately do so using the regex "/b[aiu]g/". This regex would allow us to specify the 3 words and would exclude "bog" since we do not specify the letter "o" within the square brackets of our regular expression. Understanding and using this in combination with the other tools we have learned thus far gives us the ability to find a plethora of patterns within massive datasets. Practicing implementing regular expressions is key in the mastery of the endeavor. Learning about regular expressions is best accomplished with regular practice or syntax easily becomes cryptic. But once the concept is understood, google is only a click away.




Other Videos By We Will Code


2021-02-06freeCodeCamp 2021 Regular Expressions Match All Letters and Numbers, Master Regex 2021 Coding lesson
2020-02-14Match Ending String Patterns Using Regexes, Regex Pattern Matching Tutorial, freeCodeCamp Coding Ex
2020-02-13Match Beginning String Patterns, Regex Tutorials
2020-02-08Find One or More Criminals in a Hunt, Regular Expression Greedy Match Lesson
2020-02-08Find Characters with Lazy Matching, Learning about Regular Expressions in 2020, Learn Regex Features
2020-02-03Match Characters that Occur Zero or More Times, freeCodeCamp's Regex Lessons and Tutorials
2020-01-21Match Characters that Occur One or More Times,freeCodeCamp Regex Tutorials Javascript, Learn to Code
2020-01-17Match Single Characters Not Specified, Regular Expression Lesson 2020, freeCodeCamp Tutorial
2020-01-11Match Numbers and Letters of the Alphabet, Free Regex Course, freeCodeCamp Learn Regular Expressions
2020-01-10Match Letters of the Alphabet, Regular Expression Patterns, freeCodeCamp Regexes Review
2020-01-08Match Single Character with Multiple Possibilities, freeCodeCamp Regex Concepts and Challenges
2020-01-07Match Anything with Wildcard Period, freeCodeCamp's Regex Tutorials 2020, Learn Regular Expressions
2020-01-06Find More Than the First Match, freeCodeCamp's Regexes Tutor, Regular Expression Help 2020
2020-01-04Extract Matches Using Regex, freeCodeCamp Regular Expression Help, Learn Regexes
2020-01-03Ignore Case While Matching, Regular Expressions with JS 2020 Tutorial
2020-01-03Match a Literal String with Different Possibilities, Learn Regexes on freeCodeCamp, Understanding JS
2020-01-02Match Literal Strings, Learn Regular Expressions on freeCodeCamp 2020, Learn JS for Beginners 2020
2019-12-31Regular Expressions, Using the Test Method, freeCodeCamp's Learn Regex Challenges, 2020 Learn Regex
2019-12-31Introduction to the Regular Expression Challenges, A Regex Tutorial for Beginners, Learn Regex 2020
2019-12-30Handle a Rejected Promise with catch, Learn ES6 on freeCodeCamp 2020
2019-12-26Handle a Fulfilled Promise with then, freeCodeCamp's ES6 Challenges



Tags:
js character classes
regex character classes
regular expressions js
js regular expressions