This is the pattern I compile: "\\s*(([^\\s]+)\\s*:\\s*(.*?))\\s*" in ORO
and it fails to match. But this same pattern used in Perl with the
givent input (below) does work.
$nextLine = "greeting: How do you do?\t";
if ($nextLine =~ /\s*(([^\s]+)\s*:\s*(.*?))\s*/) {
print "It's a match\n";
}
Any ideas?
Many thanks,
Ryan Parks
On Saturday, February 2, 2002, at 06:19 PM, Daniel F. Savarese wrote:
>
> In message <[EMAIL PROTECTED]>, Ryan Parks
> writes:
>> ORO says it's Perl 5 compliant but minimal matching with
>> a ? doesn't seem to work. I'm trying to use it in this context:
>> (.*?)\\s* where the string in parens is the shortest possible
>> not the longest.
>
> Can you provide sample input and code reproducing the problem? It is
> 90%
> likely this is "user error." For example, .*? will always match the
> empty
> string, which is probably not what you want.
>
> daniel
>
>
>
>
> --
> To unsubscribe, e-mail: <mailto:oro-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:oro-user-
> [EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>