Find One or More Criminals in a Hunt, Regular Expression Greedy Match Lesson

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



Duration: 2:31
178 views
0


In this lesson, we look at using a regular expression to match a group of "C" characters that represent criminals. We are able to find one or more matches of the "C" character by utilizing the plus character (+). Using the addition character allows us to target the "C" character whenever it appears one or more times in a sequence. If it appears more than one time in a row then it will match the regular expression. In this case, we are able to use the regex /C+/ to find the series of "C" characters within a string. These "C" characters represent the criminals we are hunting.




Other Videos By We Will Code


2021-02-11Specify Upper and Lower Number of Matches, freeCodeCamp Coding for Beginners 2021
2021-02-11Regex Coding Tutorial, Match Non-Whitespace Characters, Tutorial on Regular Expressions
2021-02-10Regular Expressions 2021 freeCodeCamp, Match Whitespace
2021-02-09freeCodeCamp Regular Expression, Restrict Possible Usernames, 2021 Coding Tutorials for Beginners
2021-02-08freeCodeCamp Regular Expressions, Match All Non-Number using Regex 2021 Coding Tutorials
2021-02-08Understanding Regular Expressions on freeCodeCamp 2021, Match all Numbers Regex Pattern Matching
2021-02-07Regular Expressions in 2021, freeCodeCamp Regex Match Everything But Letters and Numbers, Coding Vid
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



Tags:
greedy matching regex
regex greedy matching
using greedy matching
regular expression tutorial