On Feb 13, 9:48 am, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Wed, 2008-02-13 at 07:31 -0800, [EMAIL PROTECTED] wrote: > > return re.match("^1?$|^(11+?)\1+$", convert) > > That needs to be either > > return re.match(r"^1?$|^(11+?)\1+$", convert) > > or > > return re.match("^1?$|^(11+?)\\1+$", convert) > > in order to prevent "\1" from being read as "\x01".
But why doesn't it work when you make that change? > > -- > Carsten Haesehttp://informixdb.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list