a11y.skipToMainContent
1

过滤行

放下每个包含图案的行——或只保留那些做行. 普通下字符串匹配或完整 regex.

More options
Was this tool helpful?
Send output to:
Advertisement

How to use Filter Lines by Substring

  1. 粘贴要过滤的行 .
  2. 键入子字符串或 regex 模式.
  3. 选择“ 移动含有的行” 或“ 保留含有的行” .
  4. 如果需要, 打开 regex 或大小写不敏感匹配 .
  5. 复制或保存被过滤的结果 .

{姓名}是什么来着?

语句 这是浏览器边的迷你grep:键入子字符串或正则表达式,或者去掉每条匹配行,或者只保留匹配行. 它有助于剪切日志、擦除电子邮件列表或从长文件取出具体条目。 对大小写不敏感切换既改变子字符串也改变正则字符串匹配。

Advertisement

FAQ

支持什么regex风味?
标准JavaScript正则表达式. 大小写不敏感复选框为您添加了 I 旗.
是否保留了空白行?
空行被保留,除非它们恰好符合你的规律.

Related tools

Author

1S
1Stop Tools"The Toolsmith"

Editorial Team at 1Stop Tools

The 1Stop Tools editorial team tests, reviews, and curates every utility on this platform. We believe tools should be free, fast, and private, with no accounts, no uploads, and no tracking. Every tool on this site runs entirely in the browser, and we test on multiple devices and browsers to ensure reliability for everyone, everywhere, on any connection.

Advertisement