ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 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.