I have a text file that looks like this:
1) bla bla bla
bla bla bl-
a bla bla
2) bla bla bl-
a bla bla bl-
a bla bla
3) bla bla bl-
a bla bla bl-
a bla bla
I want to take every list item and put it inside a
<p class="bla"></p>
html tag. I also want to fuse the words that are broken up into syllables.
I only managed to get the begining of the list item
^[ ]+[0-9]+\)
and words that end with the minus sign
[a-zA-ZäöüßÄÖÜ]+\-
I wish to do this in JavaScript, but if it can be done in notepad++ too better still.
Thanks
</p><p class="bla">and then fix the first and last ones. You can also combine the syllabled lines in notepad++ by doing a replace for-\x0d\x0a(dash and then \r\n effectively) using multiline replace