RE: regexp - difference between ? and *

From: Brian Dennis (bdennis@internetworkexpert.com)
Date: Fri Aug 11 2006 - 03:20:41 ART


From the DocCD (IOS 12.4):

Understanding Regular Expressions

* Matches 0 or more sequences of the pattern.
? Matches 0 or 1 occurrences of the pattern.
+ Matches 1 or more sequences of the pattern.

http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cg/hc
f_c/ch10/cfh100.htm#wp1002051

HTH,

Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
bdennis@internetworkexpert.com

Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987
Direct: 775-745-6404 (Outside the US and Canada)

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Chee Chew Leong
Sent: Thursday, August 10, 2006 7:43 PM
To: ccielab
Subject: regexp - difference between ? and *

Could some one help me to understand what is the difference between ?
and
* when I apply them particularly on bgp AS path matching?



This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:56 ART