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!

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

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,844 Points

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