A matter of a regular Expression

From: <aly.groupstudy_at_gmail.com>
Date: Mon, 13 Apr 2009 02:54:41 -0400

Hello all,

I was working on a task asking to accept only BGP updates from AS100 and its
directly connected AS

Solution guide makes use of this regular expression ^100(_[0-9]+)?$

I used a simpler different solution ^100_[1-9]*$

I think my solution seems to work.

Can anyone confirm the difference between the 2 methods used and if one has any
advantage over the other

Blogs and organic groups at http://www.ccie.net
Received on Mon Apr 13 2009 - 02:54:41 ART

This archive was generated by hypermail 2.2.0 : Mon May 04 2009 - 07:39:11 ART