[ale] Need quick REGEXP help

J.M. Taylor jtaylor at onlinea.com
Tue Feb 10 12:56:33 EST 2004


Try
/^[0-9]{1,3}$/ && !/^0$/

I'm really rusty on syntax but i *think* that says
the whole string must be digits, 1-3 places (ie, 1-999) and not 0

There is a way to get that all in one expression but I don't know it. :)
jenn

> Any REGEXrs lsitening?
> 
> 
> Match 1 thru 999
> Whole numbers
> Not 0
> Not 1000
> 
> 1 thru 999
> 
> 
> 
> 
> 
> ____________________________________________
> russell.hogg at opm.gov
> x2367
> 
> 
> 
> 
> -----Original Message-----
> From: matty91 at bellsouth.net [mailto:matty91 at bellsouth.net] 
> Sent: Tuesday, February 10, 2004 12:41 PM
> To: Atlanta Linux Enthusiasts
> Subject: Re: [ale] GNU/Zebra
> 
> 
> On Tue, 10 Feb 2004, BruceG wrote:
> 
> > Hey all,
> >
> > 	Has anyone on this list messed with the Zebra project? I have been 
> > thinking about picking up a few Cisco 25xx routers for testing 
> > (already have ccna/ccda
> > - want to get ccnp/ccdp) - and thought that Zebra would be cool in the
> core.
> > Basically, it does RIPV1, IPV2, OSPF and BGP4 routing, and the command set
> > looks awfully similar to the Cisco IOS command set.
> >
> > 	Anyway - anyone play with that? Any experience? Good, bad, 
> > indifferent?
> 
> We used it to distribute OSPF routes to several network devices. Works
> great!
> 
> 
> >
> > Regards, Bruce _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 
> -------------------------------
> --  Even though this E-Mail has been scanned and found clean of  
> --  known viruses, OPM can not guarantee this message is virus free.
> -------------------------------
> --  This message was automatically generated.
> -------------------------------oi
> 

-- 
Jenn Taylor
Systems Analyst, CIS
Armstrong Atlantic State University
912.921.5980
taylorje at mail.armstrong.edu



More information about the Ale mailing list