I know batch isn\'t the best vehicle for this but my requirements dictate that I keep it.
I have text that looks like the following (it also has blank lines):