ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Gutierrez <a...@engrm.com>
Subject Re: Basic regex questions.
Date Mon, 31 Jan 2005 17:27:07 GMT
* Nat Gross <natgross.rentalsystems@verizon.net> [2005-01-31 11:26]:
> Matt Benson wrote:
> 
> >--- Nat Gross <natgross.rentalsystems@verizon.net>
> >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 - alan@engrm.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message