You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by Anders Cederlund <an...@biglandscape.com> on 2003/05/15 14:29:45 UTC
is "\S+\s*$" with MULTILINE_MASK broken?
We resently moved from the REGEXP package to the ORO
package and several testcases broke.
When matching the following text with MULTILINE_MASK
" aaa bbb
ccc ddd
eee fff "
(note that all lines ends with a space)
"\S+\s*$" and "\S+ *$" does not match the same string.
"\S+\s*$" matches "fff " and
"\S+ *$" matches "bbb ".
"\S+\s*?$" matches "bbb " though.
So... bug, feature?
Regards Anders C
---------------------------------------------------------------------
To unsubscribe, e-mail: oro-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-dev-help@jakarta.apache.org
Re: is "\S+\s*$" with MULTILINE_MASK broken?
Posted by Anders Cederlund <an...@biglandscape.com>.
On 15 May 2003 at 10:56, Daniel F. Savarese wrote:
//
> For now use setMultiline(true) if you can. I can't say for sure if
//
>My brain wouldn't let me put it off until the weekend. I tracked down
>the problem and fixed it. Check out the latest CVS source to verify.
//
Thanks. It's a privilege to be on the receiving end of such fast
responses with workarounds and fixes.
/Anders C
---------------------------------------------------------------------
To unsubscribe, e-mail: oro-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-dev-help@jakarta.apache.org