I have a huge .txt file in which i want to find the regular expression (^.+$)\n and replace it with \1\n. Currently i'm doing it manually.
how can i automate this using batch script?
I have a huge .txt file in which i want to find the regular expression (^.+$)\n and replace it with \1\n. Currently i'm doing it manually.
how can i automate this using batch script?
If I understand your expression properly:
^ - Start of Line.
.+ - Any character, possibly repeated
$ - End of Line
\n - Followed by a blank line
And you want to replace it with:
Everything you Captured
\n
That looks like it does not accomplish anything.
Doesn't that just replace each line with the same line?
Can you clarify your intent?