ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Lybarger" <mlybar...@gmail.com>
Subject propertyregex
Date Thu, 02 Mar 2006 16:10:56 GMT
i want to set a property using propertyregex from ant-contrib. i'm not
a regex expert/novice.

here's my string:
   Sticky Tag:		REL_1_0 (branch: 1.3.2)

I'd like to extract the REL_1_0 (third word, or word after Sticky
Tag:) to a property. some help with the regexp of it would be
helpfull. thanks!

<propertyregex property="n_cvs.branch" input="${m_cvs.branch}"
regexp="(\w+)" select="\0" casesensitive="false" />

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


Mime
View raw message