Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Reading Files 7:00
- Basics 4 questions
- The Basics 5 objectives
- Escape Hatches 5:23
- Escapes 4 questions
- Escapes 2 objectives
- Counts 6:05
- Phone Numbers 1 objective
- Word Length 1 objective
- Sets 5:42
- Email 1 objective
- Negation 8:20
- Negated Numbers 1 objective
- Groups 9:45
- Name Groups 1 objective
- Email Groups 2 objectives
- Compiling and Loops 6:51
- Players Dictionary and Class 2 objectives
- Review: Regular Expressions in Python 8 questions

- 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
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 up-
Peter Brandstetter
7,163 Points1 Answer
-
Sanjay Noronha
7,296 Points2 Answers
-
nuri jeon
14,376 PointsPosition of the elements in the set! :D I have a question!
Posted by nuri jeonnuri jeon
14,376 Points1 Answer
-
PLUS
nicole lumpkin
Courses Plus Student 5,328 Points2 Answers
-
Keith Ostertag
16,619 Points5 Answers
-
Ryan Fadholi
5,168 PointsWhy the + sign in the set doesn't have to be escaped?
Posted by Ryan FadholiRyan Fadholi
5,168 Points2 Answers
-
vikas pal
11,563 Points1 Answer
-
Mona Jalal
4,302 Points1 Answer
-
Fred Young
15,523 Points1 Answer
-
Sahar Nasiri
7,454 Points1 Answer
-
C H
6,587 PointsIs \d required when \w is being used such as in the email address search?
Posted by C HC H
6,587 Points1 Answer
-
Welby Obeng
20,340 Points3 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