Hi, Its not appropriate to start with "*" as it is meant to reference "previous" expressions which in this case will be null.
Rather using ".*" might be better. And yes, the best match is the 3rd expression you have: "kings...@gmail\.com" though the 2nd expression will still match the email too. Infact, Yusuf used your 2nd expression in his new book. Regards. ________________________________ From: Kingsley Charles <[email protected]> To: [email protected] Sent: Fri, December 25, 2009 6:28:56 PM Subject: [OSL | CCIE_Security] Matching with regex Hi all I am just going through the CCIE docs - ZBF SMTP. As per the doc, I see that the following can be used for the string - [email protected] pattern "*[email protected]*" pattern "[email protected]" pattern kings...@gmail\.com Can someone please let me know what does * do for the first regex. In the 3rd regex, is \ required to remove the special meaning of dot? I think, the 2nd regex should work. Please share your thoughts. With regard Kings
_______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com
