On 7 Jun 2004, at 07:42, Simon Kitching wrote:

Hi Alex,

On Sun, 2004-06-06 at 01:53, Alex Karasulu wrote:
Simon,

Is there support for all the wild card permutations such as "*" at the
head of a pattern, at the tail as well as anywhere in between. Also can
"*" be used more than once in a pattern?

No, none of the above is supported in the (default) RulesBase matching engine. All the RulesBase class supports is "*/" on the front of a pattern. And all I'm suggesting is to also allow "*" as a pattern.

The features you suggest would be nice to have in the default RulesBase
implementation, but would invole a major rewrite of that class. Having
said that, the ExtendedBaseRules and RegexRules classes support much of
this sort of stuff I believe (I haven't used either of these much
myself).

i tend to think that it's best to keep the RulesBase language small and quick. this allows those people who need a fast but limited matching engine to use RulesBase whilst those who want a richer language can use ExtendedBaseRules. so i feel that extra wildcard match probably belongs in ExtendedBaseRules rather than RulesBase.


of course, if people can come up with an implementation that's as fast for those cases that don't require wildcard matching, i wouldn't have any objection to this being added to RulesBase.

- robert


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to