diff options
author | Georg Brandl <georg@python.org> | 2013-10-13 07:18:45 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-13 07:18:45 (GMT) |
commit | 4300019e1a6b20f6e2e780a36d96d795c9e71a6f (patch) | |
tree | d198489f28f652705acb40993adb686cd1ce917f /Modules/sre.h | |
parent | 57841ddb5cc347884ff91c619007c43bf6a18a6b (diff) | |
download | cpython-4300019e1a6b20f6e2e780a36d96d795c9e71a6f.zip cpython-4300019e1a6b20f6e2e780a36d96d795c9e71a6f.tar.gz cpython-4300019e1a6b20f6e2e780a36d96d795c9e71a6f.tar.bz2 |
Add re.fullmatch() function and regex.fullmatch() method, which anchor the
pattern at both ends of the string to match.
Patch by Matthew Barnett.
Closes #16203.
Diffstat (limited to 'Modules/sre.h')
-rw-r--r-- | Modules/sre.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/sre.h b/Modules/sre.h index 0a8f0cf..1b64a6d 100644 --- a/Modules/sre.h +++ b/Modules/sre.h @@ -89,6 +89,7 @@ typedef struct { SRE_REPEAT *repeat; /* hooks */ SRE_TOLOWER_HOOK lower; + int match_all; } SRE_STATE; typedef struct { |