[pca] how to do multiple pattern matches?

Martin Paul martin at par.univie.ac.at
Thu Mar 6 11:05:17 CET 2008


Jeff A. Earickson wrote:
> How do I have multiple pattern matches? 

Only one pattern option is supported as of now, but as the pattern can 
be any perl regular expression, you can work around with:

   pattern=!VERITAS|JavaSE

Internally, pca checks pattern for a leading '!'. If there isn't, the 
check is done with "=~ /$pattern/". If there is, it strips '!' from the 
pattern and uses "!~ /$pattern/".

In the past, I've played around with support of multiple pattern 
options, but it turned out that it's not as easy as it seems - the big 
question is whether patterns should be logically ANDed or ORed. I found 
that neither of these work in all cases, so I gave up.

Martin.



More information about the pca mailing list