ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: [Ant-Contrib]PropertyRegex task
Date Thu, 21 Oct 2004 19:32:34 GMT
> From: Marcel Stör [mailto:marcel@frightanic.com]
> 
> Jan.Materne@rzf.fin-nrw.de wrote:
> > not tried:
> 
> I did. Works fine. Thanks a lot.
> 
> > match: (.*)\.(.*)\.(.*)\.(.*)
> > select: \1 my
> > \2 property
> > \3 56238912
> > \4 1285
> > but without check for digits or length.

Not tried either, but this should be close to enforcing the digits too:

(.*)\.(.*)\.(\d{8})\.(\d{4})

Predefined character classes:
.	Any character (may or may not match line terminators) 
\d	A digit: [0-9]

Greedy quantifiers:
X{n}	X, exactly n times

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


Mime
View raw message