Beginning and Ending of Strings2:01 with Joel Kraft
It's important to be able to specify that a regular expression starts matching at the beginning of a string and match all the way to the end. Learn more in this video.
Since the recording of this video RegexPal updated their UI. You can adjust the flags just above the input where you enter your regex. To follow along with this video you'll want to make sure that both the
multiline flags are selected.
Copy both the Match and the Exclude set of test strings from each exercise below into a Regex tester like RegEx Pal or regex101. Using what you've learned so far, create a regular expression that will match all of the strings in the Match set and exclude the ones in the Exclude set.
You need to sign up for Treehouse in order to download course files.Sign up