The problem was that I didn't use the regex wizard to test it, basically. I tried to use Notepad++, which doesn't allow for multiline regex matching. (I only found that out while writing the guide, actually.) The reason I did that was that I felt Notepad++ would be faster than Calibre, and I didn't fully understand the wizard. Also, had I known about character classes, especially \s, I might have found a solution sooner.
|