Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Regular Expressions in Python Introduction to Regular Expressions Reading Files

Naivedya Bansal
Naivedya Bansal
5,483 Points

regarding SRE_Match object

The match object returned by my local machine doen't resemble the one in the video, when the word "Love" is matched. <_sre.SRE_Match object at 0x7f66ab17b510> this is what I am getting as opposed to the video. What might be the reason for this and how can I convert it to the other format as the one in the video seemed much more readable?

Brian S.
Brian S.
3,176 Points

Same problem, pyscripter running 3.5.1.

1 Answer

Nathan Brenner
Nathan Brenner
35,832 Points

I'm getting the same thing, and I'm betting that it's because I'm using Python 2.