
After the last character of printable text, I need just 1 “CR LF” sequence and that’s it. I need to remove all of those extra blank lines, EXCEPT for 1. Could be anywhere from 2 lines, up to 50.

So I need to come up with a regex, to run on multiple open text files, where each of the text files will have a random # of empty (no printable text) lines at the end (CR LF).

I’ve figured out several things myself, but others… not so much.Īllow me to at least mention another example (and good gravy, DO NOT give me the answer - especially if it’s an easy REGEX, and I’m sure it is), but hear me out.

But, it’s a bit of a challenge for me to find my way (and sync) with the syntax. Trust me, I’ve been at that document daily.
