RE: Regular Expressions "?"

From: Scott Morris (swm@emanon.com)
Date: Wed Feb 14 2007 - 11:00:13 ART


"?" means 0 or 1 of preceding character.

HTH,

 
Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713, JNCIE
#153, CISSP, et al.
CCSI/JNCI-M/JNCI-J
IPexpert VP - Curriculum Development
IPexpert Sr. Technical Instructor
smorris@ipexpert.com
http://www.ipexpert.com
 
 

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
David Prall
Sent: Wednesday, February 14, 2007 8:25 AM
To: graham@cisco-engineer.com; ccielab@groupstudy.com
Subject: RE: Regular Expressions "?"

CTRL-V first

But is a ? Valid in a regular expression. What are you trying to do "." is
any character, "*" is the previous character 0 or more times, "+" is the
previous character 1 or more times.

David

--
http://dcp.dcptech.com

> -----Original Message----- > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf > Of graham@cisco-engineer.com > Sent: Wednesday, February 14, 2007 8:14 AM > To: ccielab@groupstudy.com > Subject: Regular Expressions "?" > > Guys, > > > > This may sound like a really stupid question, but when I try to use > the "?" > in a regular expression the cli interprets it as a "what to do next" > not the character? > > ______________________________________________________________ > _________ > Subscription information may be found at: > http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:46 ART