I found the story behind the creation of re.fullmatch().
I had no luck before because I was searching under "www.python.org/dev",
while in reality it sprang out of a bug report:
https://bugs.python.org/issue16203
In summary, there were repeated bugs where during maintenance of code
the $ symbol
Thierry wrote:
> Reading the docs about regular expressions, I am under the impression
> that calling
> re.match(pattern, string)
> is exactly the same as
> re.search(r'\A'+pattern, string)
Correct.
> Same for fullmatch, that amounts to
> re.search(r'\A'+pattern+r'\Z', string)
Correct.
> The
On Tue, Dec 22, 2015 at 9:56 PM, Thierry wrote:
> Maybe re.match has an implementation that makes it more efficient? But
> then why would I ever use r'\A', since that anchor makes a pattern match
> in only a single position, and is therefore useless in functions like
> re.findall, re.finditer or r