Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I seen a code which uses re.search() with anchor ^ instead of re.match(), but I 
never seen a code which uses re.match() instead of re.search(). It just won't 
work unless you add explicit ".*" or ".*?" at the start of the pattern, and it 
is a clear indication that re.match() matches the start of the string.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42353>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to