From: Cagri Yucel (cyucel@gmail.com)
Date: Sun Oct 15 2006 - 07:41:38 ART
No difference as long as single character match concernet
[ab]*
and
a|b*
are naturally different
On 10/15/06, Mohamed Saeed <mohamed_saeed2@rayacorp.com> wrote:
>
> 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
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
-- -cagri
This archive was generated by hypermail 2.1.4 : Wed Nov 01 2006 - 07:29:05 ART