The '.' character matchs anything other than newlines. I think you may need to replace it with something like '[.|\n]' which should match either any character other than newline OR a newline.


Al Danks wrote:

David B Funk <dbfunk <at> engineering.uiowa.edu> writes:



/(\b(best|most|more|((best|bett|bigg|larg|fast|quick)(er|est)))\b.*){4}/i


What kind of search rule are you using?
If you want your pattern to match consecutive new-line characters
(IE blank lines) then you must use the 'full' type rule.




David,

I'm using the rule at the top of the message. I tried changing body to full, but the results were the same. (noted below). I'm not looking to match new-line characters. I would like a rule that was not restricted by how many newlines might occur between the text searched for. The rule above obviously is.

After a bit of testing I've discovered that the rule doesn't trip when there is a blank line between lines containing the search text.

We are bigger.
He is faster.
She is quicker.
I am better.

works.

We are bigger.

He is faster.

She is quicker.

I am better.

Does not work.

If we can get the rule to work with variable blank lines then we are in
business.





Reply via email to