Daniel Santos schrieb: > Hello, > >>>> print re.compile('u ').search(" u box2", 1) > <_sre.SRE_Match object at 0x7ff1d918> >>>> print re.compile(' u ').search(" u box2", 1) > None > > > Why ? because you start searching at the offset 1, which means you try to find " u " in "u box2" - and that's not found. Diez