Find end of the line in regular expression using 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 : -[ ]?.*\n I have also tried : -[ ]?.*(\n) -[ ]?.*(\r\n) -[ ]?.*[\r\n] -[ ]?.*[\n] None of these worked. I am working on Windows if it matters. 回答1: Do you actually need to match the line break? If not, you can simply use $ which is the anchor for end of a line. 回答2: \R (capital R) will grab any end of line