I have a file that was generated as 'double-spaced' by inserting two newline characters between each line. I was hoping to use a regex search and replace to convert the file to 'single-spaced' by replacing two newlines '\n\n' with one newline '\n'.
I have since failed to be able to even find two consecutive newline characters. Searching for '\n\n' with regex on finds no matches.
Is this a limitation of the regex used or am I doing something wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a file that was generated as 'double-spaced' by inserting two newline characters between each line. I was hoping to use a regex search and replace to convert the file to 'single-spaced' by replacing two newlines '\n\n' with one newline '\n'.
I have since failed to be able to even find two consecutive newline characters. Searching for '\n\n' with regex on finds no matches.
Is this a limitation of the regex used or am I doing something wrong?
The search commands search only text inside a single line, so a \n will never match.