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
Negated sets let us specify characters and sequences that should be left out of any matches.
New terms
-
[^abc]
- a set that will not match, and exclude, the letters 'a', 'b', and 'c'. -
re.IGNORECASE
orre.I
- flag to make a search case-insensitive.re.match('A', 'apple', re.I)
would find the 'a' in 'apple'. -
re.VERBOSE
orre.X
- flag that allows regular expressions to span multiple lines and contain (ignored) whitespace and comments.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Aleksandar Stankovic
Python Development Techdegree Student 9,648 PointsA small error in code?
3 Answers
-
walter fernandez
4,992 Points3 Answers
-
Manyung Tah
7,445 Points1 Answer
-
Flore W
4,744 Points1 Answer
-
Serdar Halac
15,259 Points1 Answer
-
Quinton Dobbs
5,149 PointsWorkspaces and my terminal are giving different output for the same code
Posted by Quinton DobbsQuinton Dobbs
5,149 Points2 Answers
-
Lingjian Kong
6,330 Points3 Answers
-
Ullas Savkoor
6,028 Points1 Answer
-
Yuda Leh
7,618 PointsI am not getting the same output at Kenneth for the .gov removing.
Posted by Yuda LehYuda Leh
7,618 Points3 Answers
-
Daniel Petrov
3,495 Points3 Answers
-
Mona Jalal
4,302 Points1 Answer
-
Iskander Ismagilov
13,298 Points1 Answer
-
Sahar Nasiri
7,454 Points2 Answers
-
Sahar Nasiri
7,454 Points1 Answer
-
peter keves
6,854 Points2 Answers
-
CHRISTOPHER SEAL
572 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