💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
# 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.