🧹 行过滤Line Filter

按包含、等于、正则、开头、结尾或长度,保留或删除文本中的行,支持反向匹配(不满足条件的才保留)。Keep or remove lines by contains, equals, regex, starts/ends with or length, with an invert option.

① 输入文本① Input

② 过滤规则② Filter rule

第二条件(组合过滤,可选)Second condition (optional)

③ 过滤结果③ Result

保留行数:0Kept lines: 0

使用说明How to use

怎么用How to use
  1. 输入多行文本Enter multiple lines
  2. 设置匹配条件(包含/正则/长度)与保留或删除Set a condition (contains/regex/length) to keep or drop
  3. 查看过滤后的行Review the filtered lines

示例:只保留含 apple 的行Example: Keep only lines containing "apple"

全程在你的浏览器本地完成,文本不会上传服务器。Runs entirely in your browser; your text is never uploaded.

选择「保留匹配的行」或「删除匹配的行」,再设定匹配方式。选「按长度」时可设置行的字符数条件。勾选「反向匹配」会保留不满足条件、删除满足条件的行。Pick keep or remove, then choose how to match. With “By length” set a character-count condition. “Invert” keeps non-matching lines instead.