[Tutor] Regular expression - I

Zachary Ware zachary.ware+pytut at gmail.com
Tue Feb 18 20:42:09 CET 2014


On Tue, Feb 18, 2014 at 11:39 AM, Zachary Ware
<zachary.ware+pytut at gmail.com> wrote:
<snip>
>    >>> '<H\*>'
>    '<H\*>'
>
> The equivalent raw string is exactly the same in this case:
>
>    >>> r'<H\*>'
>    '<H\*>'

Oops, I mistyped both of these.  The repr should be '<H\\*>' in both cases.

Sorry for the confusion!

-- 
Zach


More information about the Tutor mailing list