commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <>
Subject Re: [digester] Can rules be re-used?
Date Mon, 17 Jan 2005 03:49:21 GMT
From: "Craig McClanahan" <>
> 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:
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 

Wendy Smoak

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message