Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Huston Petty
Huston Petty
2,833 Points

How to get contents of one group from a match object?

Hi there,

On the Final Quiz for Regex in Python there was only one question I got wrong and I couldn't seem to find a correct answer for it...

The question was "How do you get contents of a single group from a match object?". The example they gave was an "email" group from the match.

My solution was something like match_object.groupdict()["email"] but I got it wrong. Any insight on this? Thanks in advance. :D