E.7 LineContainsRegexp

This filter is similar to Section E.6, “Line Contains ” but you can specify regular expressions instead of simple strings.

<filterchain>
  <linecontainsregexp>
    <regexp pattern="foo(.*)bar" />
  </linecontainsregexp>
</filterchain>

Table E.7:  Attributes for the <linecontainsregexp> filter

NameTypeDescriptionDefaultRequired
casesensitiveBooleanPerform a case sensitive match.trueNo
negateBooleanWhether to select non-matching lines only.falseNo
regexpStringRegular expression to be searched for.n/aNo - Unless specified, a valid nested regexp element has to be set.

E.7.1 Nested tags

The LineContains filter has to contain at least one regexp tag if the regexp attribute has no pattern set. This must have a pattern attribute that is set to a regular expression.