Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r094

In

D toc

Excerpt

In 

D s lang
 transformations that support use of patterns, you may need to specify capture groups.

...

capture group

...

 is a pattern that describes a set of one or more characters that constitute a match. These matches can be programmatically referenced in replacement values.

  • These patterns are described using regular expression syntax. 
    D s product
     implements a version of regular expressions based off of RE2 and PCRE regular expressions.

...

TypeExample expression 
Positive lookahead
Code Block
/q(?u)/
Capture the letter q only when it is followed by the letter u. Letter u is not captured.
Negative lookahead
Code Block
/q(?!u)/
Capture the letter q when it is not followed by the letter u. Letter u is not captured.

D s also
inCQLtrue
label((label = "group") OR (label = "references"))