如何查找不以“。”结尾的段落。 ! "在notepad ++中使用正则表达式? [英] How to find the paragraphs that don't end in ".? ! " In notepad++ using regex?

查看:339
本文介绍了如何查找不以“。”结尾的段落。 ! "在notepad ++中使用正则表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在文本中找到不以。?!结尾的段落。在notepad ++中使用正则表达式。我尝试了多个代码,但在所有代码中,段落以。结尾。也找到了(这不是我想要的)。



我尝试过:



。* [^(。\!\?)] $ 



 。*(?:(?!。\。!\?)。)。$ 



。* [^(\。 \!\?)] $ 

解决方案



。*(?:(?!。\。!\?)。)。




。* [^(\.\!\?)] 


I want to find the paragraphs in a text that don't end in ".?!" in notepad++ using regex. I have tried multiple codes, but in all of them the paragraph ending in "." is also found (which is not what I am looking for).

What I have tried:

.*[^(.\!\؟)]$


.*(?:(?!.\.!\؟).).$


.*[^(\.\!\؟)]$

解决方案


.*(?:(?!.\.!\؟).).



.*[^(\.\!\؟)]



这篇关于如何查找不以“。”结尾的段落。 ! "在notepad ++中使用正则表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆