Hi Per,
Actually \n matches a newline. $ matches before a newline, ie. the end of a 
line before the invisible newline itself. Therefore, ^ 
and $ match after and before a newline (\n), respectively.

At least that's my understanding. And this isn't the issue for me. It's 
figuring out how to get multiline mode to work in a rule....

- Jeremy


"Per Jessen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
Jeremy Fairbrass wrote:

> Hi all,
> I hope someone can help me with a rule I'm trying to write. My
> understanding of the multi-line mode, with the /m switch at the end,
> is this: in this mode, the caret (^) and dollar ($) match before and
> after newlines in the string. Is that correct?

Hi Jeremy,

a $ will match a newline, whether before or after something.


/Per Jessen, Zürich




Reply via email to