Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change for new engine

You've seen that the setting clause can be used to capture values in regular expressions and bind them to variables in primitive events. When a value is bound to a variable, it can be used in subsequent subexpressions in the same eventex. (To be less ambiguous, variables bound in one eventex can be used in enclosing eventexes. Parentheses can be used to ensure that the nesting of event subexpressions is what the developer desires.) For example, suppose you want to see if someone has viewed the same page twice without having to specify the page. You don't care which page they view, as long as they view it twice.

Code Block
languagejavascript
themeConfluencelanguagejavascript
select when web pageview url re#/archives/(.*)#) setting (a)
     before web pageview url.match(("#/archives/"+a+"#").as("regex"))

...