help me please with regular expression in ruby.
I have a text like
1. Hello, World\n
2.\n
Good Morning\n
I expect a two strings, but in original it has a three strings with bad ‘new line – \n’ character
Question how to replace ‘bad’ \n after ‘2.’ and before ‘Good Morning\n’
I have a trouble with thousands mistakes like this
you could remove the ‘bad’ newline character like this
This removes a newline character after one or more digits followed by a dot.