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
Post a Comment