Bummer! You must be logged in to access this page.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Regular Expressions in Python!
You have completed Regular Expressions in Python!
Sets let us combine explicit characters and escape patterns into pieces that can be repeated multiple times. They also let us specify pieces that should be left out of any matches.
New terms
-
[abc]- this is a set of the characters 'a', 'b', and 'c'. It'll match any of those characters, in any order, but only once each. -
[a-z],[A-Z], or[a-zA-Z]- ranges that'll match any/all letters in the English alphabet in lowercase, uppercase, or both upper and lowercases. -
[0-9]- range that'll match any number from 0 to 9. You can change the ends to restrict the set.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated 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