[pcre-dev] [Bug 1099] New: Ability to reference 'variables' …

Top Page
Delete this message
Author: Pavel Kostromitinov
Date:  
To: pcre-dev
New-Topics: [pcre-dev] [Bug 1099] Ability to reference 'variables' from regexp, [pcre-dev] [Bug 1099] Ability to reference 'variables' from regexp
Subject: [pcre-dev] [Bug 1099] New: Ability to reference 'variables' from regexp
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1099
           Summary: Ability to reference 'variables' from regexp
           Product: PCRE
           Version: 8.10
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: pavel@???
                CC: pcre-dev@???



In Perl, one can use $var in regexp and usually the variable reference will be
expanded.

It would be very helpful in some situations to allow PCRE to reference such
external variables too.
The way I see it, without (seemingly) breaking backward-compatibility, is to
make some way to set values of 'named subpatterns' before pcre_exec(), so they
can be referenced using existing \k{name} syntax. Surely encountering
subpattern with same name inside of pattern would take precedence.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email