commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Keese <bi...@tech.beacon-it.co.jp>
Subject Re: [digester] Can rules be re-used?
Date Mon, 17 Jan 2005 04:07:49 GMT
Try "*/?" as a pattern; that's what worked for me.

Wendy Smoak wrote:

> From: "Craig McClanahan" <craigmcc@gmail.com>
>
>> Wild cards in Digester are "prefix matches", not regular expressions.
>> So, you'll need to add a rule (you can reuse the same instance) for
>> each tail element that you are processing:
>>
>>    digester.addRule("*/download", rule);
>>    digester.addRule("*/person", rule);
>
>
> I got the "*" or "!*" idea from:
> http://jakarta.apache.org/commons/digester/apidocs/org/apache/commons/digester/ExtendedBaseRules.html

>
> which says
>    Wild Match
>        Pattern "*" matches every pattern that isn't matched by any 
> other basic rule.
>        Pattern "!*" matches every pattern.
>
>> From that I thought that "!*" would, well, match every pattern.  What 
>> am I 
>
> missing?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message