【发布时间】:2017-05-17 11:24:35
【问题描述】:
我有以下几行:
example
example example
example example example
example example, example
example example example.
example
example12
example example*
example example (example)
éxample example
我只想删除这几行:
example12
example example*
example example (example)
éxample example
像这样:
代码 1:
^(?![a-zA-Z,.']+$).+$\R?
代码 2:
^.*[^a-zA-Z.,'].*$
两个词之间的空格:
[ \t]+
【问题讨论】:
-
您能用文字解释一下您的要求吗?您想删除任何包含除字母数字、逗号、句点和单引号字符之外的字符的行,并且...请继续。也许只是将
\h添加到字符类 -^(?![a-zA-Z,.'\h]+$).+$\R?? -
谢谢@WiktorStribiżew 先生,我只是想过滤英文文本,:) 它工作正常^^
标签: regex notepad++ notepad regex-group