I am using RegEx in Notepad++ to transform my lines from a .txt file into rows that I can easily transfer to my Spreadsheet. For example, I have these lines
6:
1 my 1st log
-2 my 2nd log
7:
-3 my 3rd log
4 my 4th log
-5 my 5th log
What I want to show in my spreadsheet is this:
+-+-----+-------+------------+
|1| DAY | VALUE | LOG |
|2| 6 | 1 | my 1st log |
|3| | -2 | my 2nd log |
|4| | | |
|5| 7 | -3 | my 3rd log |
|6| | 4 | my 4th log |
|7| | -5 | my 5th log |
+-+-----+-------+------------+
Where the row numbers in a Spreadsheet are shown on the 1st column. I am able to match the first and second lines with ^(\d+)+\:$\r\n(.*+)
and this is okay for 2 lines but if there are 3 logs such as on the 7th day, it wouldn't. How do I match all characters until an empty line? Thanks