summaryrefslogtreecommitdiff
path: root/pod/perlreref.pod
diff options
context:
space:
mode:
authorMoritz Lenz <moritz@casella.verplant.org>2011-03-19 10:44:23 +0000
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-03-19 10:44:23 +0000
commit41ef34de832ea2283fbc3b35c6da583d89497204 (patch)
tree5930ebbb701750e210b1372cae4e5f654570eb20 /pod/perlreref.pod
parent646253b5bb64d062851d102e7c6847ce5c5d3e18 (diff)
downloadperl-41ef34de832ea2283fbc3b35c6da583d89497204.tar.gz
[PATCH] [pod] improve documentation for (?(cond)yes|no)
perlre: Include a high-level description of what it does, and what a missing pattern means perlreref: Include missing look-around cases Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
Diffstat (limited to 'pod/perlreref.pod')
-rw-r--r--pod/perlreref.pod4
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlreref.pod b/pod/perlreref.pod
index 54b619f83b..efae00c693 100644
--- a/pod/perlreref.pod
+++ b/pod/perlreref.pod
@@ -243,6 +243,10 @@ There is no quantifier C<{,n}>. That's interpreted as a literal string.
(?P>name) Recurse into a named subpattern (python syntax)
(?(cond)yes|no)
(?(cond)yes) Conditional expression, where "cond" can be:
+ (?=pat) look-ahead
+ (?!pat) negative look-ahead
+ (?<=pat) look-behind
+ (?<!pat) negative look-behind
(N) subpattern N has matched something
(<name>) named subpattern has matched something
('name') named subpattern has matched something