Reg Exp Question

From: Mohamed Saeed (mohamed_saeed2@rayacorp.com)
Date: Sun Oct 15 2006 - 05:41:05 ART


Hi All,

What is the difference between the following two regular expressions:

[ab]

a|b

As per my understanding, both expressions should match one occurrence of
either the character "a" or the character "b", am I right?

Regards

Mohamed Saeed, CCNP - CCIP



This archive was generated by hypermail 2.1.4 : Wed Nov 01 2006 - 07:29:05 ART