Match Beginning String Patterns, Regex Tutorials

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



Duration: 2:43
118 views
0


In this regex tutorial, we look at a way of matching a string pattern on the beginning of the string pattern. In the past, we used the caret character to create a negated character set pattern in a string. Outside a character set, the caret character is used to find patterns at the beginning of a string. Learning the different functions and different meanings for the caret character is important or else we might not get the results we are looking for. In order to match the beginning of a string pattern, we use the caret character at the beginning of our pattern. For example, if we want to find out if the pattern "Ricky" is found at the beginning of a string, we would create the regex "/^Ricky/". If we then tested a string that begins with the pattern "'Ricky", our regex would return true. Understanding that the caret character is used differently depending on its placement within a regex, is important in using it correctly and therefore matching the pattern you wish to find.




Other Videos By We Will Code


2021-02-11freeCodeCamp, Specify Only the Lower Number of Matches, Free Coding Tutorial for Beginners in 2021
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



Tags:
match first pattern
match pattern in string
regex beggining string
match beginning of string
2020 regex tutorial