🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# E.7 LineContainsRegexp This filter is similar to [Section聽E.6](apes06.html "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`casesensitive``Boolean`Perform a case sensitive match.trueNo`negate``Boolean`Whether to select non-matching lines only.falseNo`regexp``String`Regular 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.