jedit - Find from last blank line to string using regex -



jedit - Find from last blank line to string using regex -

i need search in jedit string starting end of lastly empty line string:

blah blah blah blah blah empty line empty line empty line *start here* blah blah blah blah blah blah blah blah ------ running ------

the thought search , replace remove (i've bolded) before string ------ running ------ not lines or strings before lastly line.

can suggest proper regex find end of lastly line origin of string ------ running ------ ?

thanks!

use below regex , remove matched string empty string.

(?s)(?<=\n)(?:(?!\n\n).)*\n(?=[^\n]+------ running ------)

java regex be,

(?s)(?<=\\n)(?:(?!\\n\\n).)*\\n(?=[^\\n]+------ running ------)

demo

regex jedit

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -