Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update syntax

...

Code Block
languagejavascript
themeConfluence
rule url_in_filter { 
  select when web pageview where url.match(#re#/archives/\d{4}/#)
  notify(...)
}

Suppose, instead, that you had written the URL filter as a condition in a rule using the event attribute function:

Code Block
languagejavascript
themeConfluence
rule url_in_condition { 
  select when web pageview 
  if event:attr("url").match(#re#/archives/\d{4}/#) then 
    notify(...
}

These are, mostly, equivalent, but there are several subtle differences:

...