Jeff Schwab wrote:
> John Machin 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'.
> 
> 
> How else would you match the beginning of a line in a multi-line string?

I beg your pardon -- I should have qualified that:

"""
So please don't tell newbies to search for r'^something' when match of 
r'something' does the job.
"""

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to