https://bugs.exim.org/show_bug.cgi?id=1689

            Bug ID: 1689
           Summary: Catch up with some of the replacement syntax of the
                    Boost regex engine
           Product: PCRE
           Version: N/A
          Hardware: All
               URL: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/ht
                    ml/boost_regex/format/boost_format_syntax.html
                OS: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Hello,

please take a look at these documentation page of the Boost regex engine:
http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html
, especially the topic "Conditionals".

This allows you, e.g., to search for:
> ((?<digit>\d)|(?<wordChar>\p{Alpha}))
and replace it with:
> \[(?{digit}A digit, :No digit, but a )(?{wordChar}word character:not a word 
> character)\]
resulting in:
> [A digit, not a word character][No digit, but a word character][No digit, but 
> a word character][A digit, not a word character]

This replacement syntax is potentially extremely useful because it extends your
possibilities intensely. So, is there a chance for this to get implemented?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to