I use Sublime Text to clean up text all of the time. It is absolutely the fastest and easiest way to make neat lists or to grab a bunch of text and convert it to arrays or whatever.
Why is it so awesome? Because it is a text editor on steroids.
How is it so awesome? Because it has regular expressions built in to its text searching. YAY!
It is even faster for searching in code especially if you are utilizing id, name, label, or class tags.
(?<=SELECT EVERYTHING AFTER THIS).+
(?=SELECT EVERYTHING BEHIND THIS).+
(?<=SELECT EVERYTHING).+(?=BETWEEN THIS)
Select All text Between paragraph tags
Select Empty Lines
Selecting all Opening Links
Select all Closing Anchor Tags
I'll add to this list as I think of helpful regular expressions