[pcre-dev] [Bug 2503] Documentation references a (?J) not ex…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2503] Documentation references a (?J) not explained anywhere
https://bugs.exim.org/show_bug.cgi?id=2503

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED


--- Comment #1 from Philip Hazel <ph10@???> ---
(In reply to php4fan from comment #0)

> So I searched for any occurrence of "?J" and it doesn't appear anywhere else.


Not true:

$ pcre2grep -l '\(\?J\)' doc/*
doc/pcre2.txt
doc/pcre2_pattern_info.3
doc/pcre2api.3
doc/pcre2pattern.3
doc/pcre2syntax.3

> It's not clear by that sentence alone how "(?J) within the pattern" is
> supposed to be used. Not only there is no explanation but it doesn't appear
> in any of the examples.


Well, there's not much to say. (?J) within a pattern sets the PCRE2_DUPNAMES
option, in the same way that (?i) sets the PCRE2_CASELESS option. However, I
see that the two examples that follow the sentence you quote from pcre2syntax.3
do not actually show (?J), so I have added (?J) to the front of them.

--
You are receiving this mail because:
You are on the CC list for the bug.