[Python-Dev] What does a double coding cookie mean? (original) (raw)

Ethan Furman ethan at stoneleaf.us
Thu Mar 17 20:54:12 EDT 2016


On 03/17/2016 04:54 PM, Glenn Linderman wrote:

On 3/16/2016 12:59 AM, Serhiy Storchaka wrote:

Actually "must match the regular expression" is not correct, because re.match() implies anchoring at the start. I have proposed more correct regular expression in other branch of this thread. "match" doesn't imply anchoring at the start. "re.match()" does (and as a result is very confusing to newbies to Python re, that have used other regexp systems).

It still confuses me from time to time. :(

-- Ethan



More information about the Python-Dev mailing list