E.6 LineContainsRegexp
Prev | Appendix E. Core filters | Next

## E.6 LineContainsRegexp

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

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

### E.6.1 Nested tags

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

Prev | Up | Next
E.5 Line Contains | Home | E.7 PrefixLines