[pcre-dev] [Bug 1458] New: Identifying patterns without any …

Top Page
Delete this message
Author: Alan Lehotsky
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1458] New: Identifying patterns without any special characters...
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1458
           Summary: Identifying patterns without any special characters...
           Product: PCRE
           Version: 8.32
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: low
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: alehotsky@???
                CC: pcre-dev@???



Our language wraps the PCRE library functions and we've noticed that users
write regular expression functions when simple string matching or replacement
functions would work (and be significantly faster).

In those cases where the pattern string is a compile time constant and contains
no 'special characters' for pattern matching, is there a way to examine the
compiled pattern to identify that this is just semantically a string identity
match? That would allow us to either
optimize those calls directly into a string match, or issue a warning message
suggesting rewriting the code to use string functions.


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