Excluding Characters3:13 with Joel Kraft
Matching any character EXCEPT a specific character can be very useful at times. Learn how.
Copy both the Match and the Exclude set of test strings from each exercise below into a Regex tester like regexpal 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.
foxes jumping dogs
1234k 5784k 5784k
Match *only* the commas:
pears, apples, cherries, oranges,
Match only the text character strings from each line ('html', 'head', etc):
<html> <head> </head> <body> <div> </div> </body> </html>
You need to sign up for Treehouse in order to download course files.Sign up