Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- What is a Regular Expression? 5:54
- Matching Specific Characters 5:09
- Matching Character Ranges 2:33
- Using Wildcard Characters 4:49
- Finding Repeated Characters 5:47
- Excluding Characters 3:53
- Alternation 1:40
- Groups 3:27
- Beginning and Ending of Strings 2:10
- Language Practice 1:03
- Regular Expressions 5 questions
Well done!
You have completed Introduction to Regular Expressions!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Learn how to write simple regular expressions with optional characters.
Practice
Copy each set of test strings into regex101. Using what you've learned so far, create a regular expression that will match all of the strings in the set.
1 )
ladybug
ladybugs
lady bugs
2 )
ladybug
lady bugs
lazy bug
lazy lug
3 )
ladybug
lazy lug
lazy slug
hazy slug
4 )
ladybug
fading rug!
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Martin Mwaka
5,554 Points1 Answer
-
Dennis Wall
179 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up