You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2002/01/28 21:18:54 UTC
Re: multiline mode and platform issues
In message <9B...@maileu.imediation.com>, St
ephane Bailliez writes:
>A test fails on Windows when doing a match around "endtest\r\n" with the
>pattern "endtest$". It works fine on Unix. Of course it works on windows if
>I change the string into a "endtest\n" or change the pattern into a
>"endtest\r$"
I believe someone brought this up before. If you check the archives you'll
probably find a better explanation. But what it comes down to is that in
Perl (I'm assuming you're using Perl5Matcher or Perl5Util), $ only matches
a zero-width 'null string' right before '\n' That's how it's defined
regardless of the eol convention for a platform.
daniel
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>