On Fri, Sep 04, 2009 at 01:35:53PM -0400, Eric Van Tol wrote: > A private response (thanks, Chris!) indicates to me that the following two > are actually correct: > > ^1234:((100)|(250)|(375))$ > ^1234:(100|250|375)$ > > My other example "works", but also matches on other patterns such as 999:250, > 38549:250, and 7:100: > > ^1234:(100)|(250)|(375)$
Oh, duh, yes I wasn't even paying attention to that part I thought your question was just about the external parens. To do that "or" you want (123|234|345), the additional parens around the individual items are what is unnecessary. And of course you need the ^ $ to protect the begin and end, otherwise you'd match 1234 as well as 11234, etc, etc. -- Richard A Steenbergen <[email protected]> http://www.e-gerbil.net/ras GPG Key ID: 0xF8B12CBC (7535 7F59 8204 ED1F CC1C 53AF 4C41 5ECA F8B1 2CBC) _______________________________________________ juniper-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/juniper-nsp

