Hi,
I didn't see ORO as a package listed in Apache's bug database
(http://nagoya.apache.org/bugzilla/). Is this because Oro has
only recently been hosted by the Jakarta project?
Anyway, I found a bug (and a corresponding work-around) in the
multiline matching provided by Perl5Util.
The Oro package does not properly interpret '^' and '$' as beginning
and ending _line_ anchors when performing a multiline match. There is a
fix though... If the carrot ('^') and dollar sign ('$') are replaced with
appropriate patterns, the pattern will match (either with or without the
multiline option removed).
+==========================+=============+
| Original Pattern | New Pattern |
+==========================+=============+
| beginning of line ('^') | (\r?\n|^) |
+--------------------------+-------------+
| ending of line ('$') | (\r?\n|$) |
+==========================+=============+
So, for example, the oro regular expression /^\s*I[ \t]+wrote\s*?$/im
will not match on the string "\tHave you written?\n\tI wrote"
But, the oro regular expression /(\r?\n|^)\s*I[ \t]+wrote\s*?(\r?\n|$)/i
will match properly.
Thanks for your time
Ed.
// Edward Chidester
// Software Engineer MNIS - Textwise Labs
// (315) 426-9311 x232 401 South Salina Street
// [EMAIL PROTECTED] Syracuse, NY 13202