in reply to Re^2: Can't remember the term to search for help on! (paragraph mode)
in thread Can't remember the term to search for help on!
For anyone else that needs to cleanup poorly formatted ebooks in text files, here's what I came up with from the help I received above:
This will remove newline characters at the end of lines that do NOT end in a period, question mark, exclamation point or some form of quote. However, prior to removing those newline characters, it removes any newline character preceded by a hyphen as well as removing the hyphen.
It works great. Thanks Perl Monks!
|
|---|