![]() |
match an empty line with a regex?
How can I match an empty line with a regex? I tried both ^$ and ^\s*$ but it says No matches found for both of those. I have a bunch of plain text and I'd like to put a /p and then a p between the paragraphs where there are currently blank lines.
|
I always look (capture with the mouse) for the closing tag of the previous Paragraph, and newlines then Capture (.+?)to the Newline stuff between that and the <p class+...
|
Quote:
|
TheDucks:
I have often had this question myself. Unfortunately I do not understand your explanation: When you write "Capture with the Mouse", do you mean, simply select the area, i.e. the empty line, in question? And "Capture (.+?)" throws me completely. I have no idea what that might mean or what I need to do. In Stack Overflow I found a definition for Capture.Mouse but I still do not understand it. Further explanation would be much appreciated. Thanks. |
Quote:
|
Thanks. Your explanation clarified it completely. Now I know what to do and how.
|
| All times are GMT -4. The time now is 10:29 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.