diff options
author | Yves Orton <demerphq@gmail.com> | 2006-10-12 02:46:50 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-12 08:43:20 +0000 |
commit | 0a4db386e1881073eaec2c3026e38146ff1d6b18 (patch) | |
tree | 22dc82474a42a26c55deb83dfafc99ada28994c9 /pod/perlre.pod | |
parent | 6980eebd7cd40424ba72081bd69d31d2b7576f4f (diff) | |
download | perl-0a4db386e1881073eaec2c3026e38146ff1d6b18.tar.gz |
Add Regex conditionals. Various bugfixes. More tests.
Message-ID: <9b18b3110610111546j74ca490dg21bd9fd1e7e10d42@mail.gmail.com>
p4raw-id: //depot/perl@28998
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r-- | pod/perlre.pod | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index a22344fe4b..f79b8c7b51 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -998,18 +998,28 @@ highly experimental, and may be changed or deleted without notice. Conditional expression. C<(condition)> should be either an integer in parentheses (which is valid if the corresponding pair of parentheses -matched), or look-ahead/look-behind/evaluate zero-width assertion. +matched), a look-ahead/look-behind/evaluate zero-width assertion, a +name in angle brackets or single quotes (which is valid if a buffer +with the given name matched), the special symbol (R) (true when +evaluated inside of recursion or eval). Additionally the R may be +followed by a number, (which will be true when evaluated when recursing +inside of the appropriate group), or by C<&NAME> in which case it will +be true only when evaluated during recursion into the named group. For example: - m{ ( \( )? - [^()]+ - (?(1) \) ) + m{ ( \( )? + [^()]+ + (?(1) \) ) }x matches a chunk of non-parentheses, possibly included in parentheses themselves. +An additional special form of this pattern is the DEFINE pattern, which +never executes its yes-pattern except by recursion, and does not allow +a no-pattern. + =back =head2 Backtracking |