* Nat Gross <[EMAIL PROTECTED]> [2005-01-31 11:26]:
> Matt Benson wrote:
> 
> >--- Nat Gross <[EMAIL PROTECTED]>
> >wrote:
> >
> > 
> >
> >>Hi;
> >>I am just coming up to speed on Regex and have a
> >>couple of questions, 
> >>please.
> >>
> >>1. Is there a difference between a) [a-cx-z] and
> >>b)[a-c[x-z]] ?
> >>If so, what? If not, which syntax is better to use?
> >>   
> >>
> >
> >I don't know, but b) looks confusing to me.  I'd go
> >with a).
> >
> > 
> >
> This is the reason I am confused. 
> http://java.sun.com/docs/books/tutorial/extra/regex/char_classes.html
> If you look under the union (and other) section on that page, they 
> consistently use b), hence my question.

    Interesting. However, [a-cx-z] is also a union. From what I can
    tell the outcome is the same, but b) is uncommon.

--
Alan Gutierrez - [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to