NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# 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.