good stuff

thanks for letting me know

Michael Mulholland CISSP CCSP JNCIA-FWV


________________________________
From: Eugene Pefti [mailto:[email protected]]
Sent: 10 July 2012 21:25
To: Mulholland, Michael; [email protected]; Ben Shaw
Cc: [email protected]
Subject: RE: [OSL | CCIE_Security] Regex Cheat Sheet

I don't think so, Michael.
This dot is not a special character but a way to say any single character.
And as the regex reference guide that we found yesterday in the Term services 
guide says:

Asterisk matches zero or more sequences of the character preceding the 
asterisk. Also acts as a wildcard for matching any number of characters

So my reasoning was that the string "probe" can be sent as a standalone string 
or prepended and appended with different characters which I tried to define 
with dot and asterisk

And Ta-Da!!!  I made a slight typo, my regex should have been (see the 
prepending sequence)

.*[Pp][Rr][Oo][Bb][Ee].*

And ASA tested it OK !


From: Mulholland, Michael [mailto:[email protected]]
Sent: Tuesday, July 10, 2012 1:18 PM
To: Eugene Pefti; [email protected]; Ben Shaw
Cc: [email protected]
Subject: RE: [OSL | CCIE_Security] Regex Cheat Sheet

eugene

do you not need a / before the dots so that they are considered to be regex 
special characters?

Michael Mulholland CISSP CCSP JNCIA-FWV


________________________________
From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Eugene Pefti
Sent: 10 July 2012 21:10
To: [email protected]<mailto:[email protected]>; Ben Shaw
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [OSL | CCIE_Security] Regex Cheat Sheet
It seems to me that ASA is not so versatile when testing regex.
I tried to test the regex that matches all combinations of the string "probe".
The solution guide says it should be like this:

*.[Pp][Rr][Oo][Bb][Ee].*

I tried to test it on ASA and it failed until I removed asterisks and dots.

Eugene

From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Alexei 
Monastyrnyi
Sent: Monday, July 09, 2012 6:50 PM
To: Ben Shaw
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [OSL | CCIE_Security] Regex Cheat Sheet

Hi Ben,
thanks, a nice link.

you can also do show run all regex on ASA to see some examples there.

Cheers
A.
On 7/10/2012 11:36 AM, Ben Shaw wrote:
Hi All

I am certainly not the first person to find this but in case any of were hadn't 
come across this before, there is a Regex guide in Cisco Docs that you will be 
able to use during the exam so there is no need to try and memorise all the 
special characters. The path is below

Products > Cisco IOS and NX-OS Software > Cisco IOS > Cisco IOS Software 
Release 12.2 Family > 12.2 Mainline > Configure > Configuration Guide > Cisco 
IOS Terminal Services Configuration Guide, Release 12.2 > Appendixes > Regular 
Expressions

Thanks
Ben



_______________________________________________

For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com<http://www.ipexpert.com>



Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com<http://www.PlatinumPlacement.com>

_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com

Reply via email to