Quote:
Originally Posted by franknight
Thank you for your quick response. I'm sorry to be such a noob but I just don't understand. It seems to me most all first lines would be less than 200 chars so I would have matched most comment fields. But it didn't - It matched about 3% of them and didn't match some with 20 chars total. Could you feed my feeble mind with a little more info. Many thanks. frank
|
The problem is that your regex is matching against each line in the comment. That is, it is matching against lines of comment that end in a new-line character. If the comment has a single line with less than 200 characters in it, then it will be matched. And from what I have seen, that will be fairly common.
Kovid's suggestion is to change the regex to :
But, I'm not sure if that will do exactly what you want. I can't test it at the moment.