Quote:
Originally Posted by phossler
I did a quick test, but it seems to do too much. I'd really like to just do a [Replace All] and not that to single step through 100's of Finds
|
Do you have the dotall box checked? Uncheck it if so. That regex finds absolutely nothing but the DOCTYPE line in several huge books I've tested it on (and the extraneous linefeed like the one in your sample). If there are no doctype statements, that regex often finds nothing in the books I try it on.
It WILL catch a lot of style stuff in the headers if you run into a lot of that (which I don't) and the "traditional" svg cover image pages, but other than that, it seems to point out the non-typical linefeeds in otherwise prettified markup fairly well for me. *shrug*
Having said that though... I'll rarely nominate ANY regex as a candidate for a Replace All action in a novel, if ever. My plan is always to reduce the step-through process to something manageable .