使用 Notepad++ 在正则表达式中查找行尾 [英] Find end of the line in a regular expression using Notepad++

查看:28
本文介绍了使用 Notepad++ 在正则表达式中查找行尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am working with Notepad++ and I would like to find the new line (after the hyphen, optional space and some characters in the end line).

I have came up with something like this:

  • -[ ]?.*

I have also tried:

  • -[ ]?.*( )
  • -[ ]?.*( )
  • -[ ]?.*[ ]
  • -[ ]?.*[ ]

None of these worked. I am working on Windows if it matters.

解决方案

If you do not actually need to match the line break, you can simply use $ which is the anchor for end of a line.

这篇关于使用 Notepad++ 在正则表达式中查找行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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