In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: > >Search for r'^something' can never be better/faster than match for >r'something', and with a dopey implementation of search [which Python's >re is NOT] it could be much worse. So please don't tell newbies to >search for r'^something'.
You're somehow getting mixed up in thinking that "^" is some kind of "not" operator -- it's the start of line anchor in this context. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ The way to build large Python applications is to componentize and loosely-couple the hell out of everything. -- http://mail.python.org/mailman/listinfo/python-list