Quote:
Originally Posted by signum
Yeah, it works, sorta. But it matches all paragraphs with quotation marks, whether or not they are "valid", i.e. matched or balanced. This was first reported by the OP in msg #428, above.
|
Well, my regex was not meant to find paragraphs where the only quotation marks were at the end. In fact, I specifically precluded the idea. You need a second regex for that.
But they should correctly have found #1 and #3, and I cannot see why they would find, for example,
So how exactly was my regex matching valid paragraphs, I wonder? This bit should make it impossible (unless there was random extra space at the end or some such?):