summaryrefslogtreecommitdiff
path: root/doc/pcre2pattern.3
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-12-28 14:09:09 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-12-28 14:09:09 +0000
commitcd295a661424c0c26b586bd4b84b40f6a719cf50 (patch)
treeb19db8dd0354f751ad33802fa4bf5b5b428f1e69 /doc/pcre2pattern.3
parent92a70745ba213b299a496344e59b8b7c620ccdcf (diff)
downloadpcre2-cd295a661424c0c26b586bd4b84b40f6a719cf50.tar.gz
Documentation update.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1198 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'doc/pcre2pattern.3')
-rw-r--r--doc/pcre2pattern.33
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/pcre2pattern.3 b/doc/pcre2pattern.3
index 4819187..9430c6b 100644
--- a/doc/pcre2pattern.3
+++ b/doc/pcre2pattern.3
@@ -1907,6 +1907,7 @@ group can match. Suppose you want to match the name of a weekday, either as a
3-letter abbreviation or as the full name, and in both cases you want to
extract the abbreviation. This pattern (ignoring the line breaks) does the job:
.sp
+ (?J)
(?<DN>Mon|Fri|Sun)(?:day)?|
(?<DN>Tue)(?:sday)?|
(?<DN>Wed)(?:nesday)?|
@@ -1926,7 +1927,7 @@ they appear in the overall pattern. The first one that is set is used for the
reference. For example, this pattern matches both "foofoo" and "barbar" but not
"foobar" or "barfoo":
.sp
- (?:(?<n>foo)|(?<n>bar))\ek<n>
+ (?J)(?:(?<n>foo)|(?<n>bar))\ek<n>
.sp
.P
If you make a subroutine call to a non-unique named group, the one that