[latex3-commits] [git/LaTeX3-latex3-latex3] main: Update a list of unimplemented regex features (2000ea3fa)

Bruno Le Floch blflatex at gmail.com
Tue May 18 21:12:42 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/2000ea3faccea2afc47a203933368ad5f1697806

>---------------------------------------------------------------

commit 2000ea3faccea2afc47a203933368ad5f1697806
Author: Bruno Le Floch <blflatex at gmail.com>
Date:   Tue May 18 21:12:42 2021 +0200

    Update a list of unimplemented regex features
    
    This is actually just commented out, but it is sometimes helpful
    to me when thinking about possible TeX-specific syntax extensions.


>---------------------------------------------------------------

2000ea3faccea2afc47a203933368ad5f1697806
 l3kernel/l3regex.dtx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/l3kernel/l3regex.dtx b/l3kernel/l3regex.dtx
index eb729b94a..ae611f2e9 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -7719,6 +7719,7 @@
 %^^A                    recursion condition
 %^^A    (?(DEFINE)...   define subpattern for reference
 %^^A    (?(assert)...   assertion condition
+%^^A    (?(?=..)..|..)  positive/negative look ahead/behind condition
 %^^A    (*ACCEPT)       force successful match
 %^^A    (*FAIL)         force backtrack; synonym (*F)
 %^^A    (*COMMIT)       overall failure, no advance of starting point
@@ -7735,8 +7736,10 @@
 %^^A    +               possessive quantifiers
 %^^A    (?>...)         atomic, non-capturing group
 %^^A    (?#....)        comment (not nestable)
-%^^A    (?JmsUx)        options (duplicate names; multiline; single line;
-%^^A                      ungreedy; extended)
+%^^A    (?Jms-UxX)      options (duplicate names; multiline; single line;
+%^^A                      unset what follows; ungreedy; extended;
+%^^A                      error on bad escapes)
+%^^A    (?i:...|...)    convenient shorthand for (?:(?i)...|...)
 %^^A    (*NO_START_OPT) no start-match optimization (PCRE_NO_START_OPTIMIZE)
 %^^A    (*UTF8)         set UTF-8 mode (PCRE_UTF8)
 %^^A    (*UCP)          set PCRE_UCP (use Unicode properties for \d etc)





More information about the latex3-commits mailing list.