Re: regular expressions - any difference between this two?

From: gladston@br.ibm.com
Date: Tue Feb 01 2005 - 14:54:02 GMT-3


===================
quoted
* IP as-path access-list permit ^[0-9]+$

* IP as-path access-list permit ^([0-9]+)$
===================

It seems the same to me, but why using ()?
As I see it, it would be useful when using more complex structure.
If it was a CCIE Lab, maybe the Proctor would think: "Does the candidate understand using () on access-expression?"

Good Luck.



This archive was generated by hypermail 2.1.4 : Thu Mar 03 2005 - 08:51:15 GMT-3