Can't match str/unicode

CM cmpython at gmail.com
Sun Jan 8 02:44:12 EST 2017


On Sunday, January 8, 2017 at 1:17:56 AM UTC-5, Steven D'Aprano wrote:
> On Sunday 08 January 2017 15:33, CM wrote:
> 
> > On Saturday, January 7, 2017 at 7:59:01 PM UTC-5, Steve D'Aprano wrote:
> [...]
> >> Start by printing repr(candidate_text) and see what you really have.
> > 
> > Yes, that did it. The repr of that one was, in fact:
> > 
> > u'match /r'
> 
> Are you sure it is a forward-slash /r rather than backslash \r?

No, you're right, it was a backslash \r. Should have pasted it. Good catch.



More information about the Python-list mailing list