ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <sflo...@nc.rr.com>
Subject Re: propertyregex question
Date Wed, 23 Jun 2010 00:44:30 GMT
Try select="\1"



On Tue, 22 Jun 2010, Andy2008 wrote:

>
> Here's my input
>
> abc/long/distance
>
> I want to get abc back.  Here's my code
>
> <propertyregex property="myprop"
>              input="${input}"
>              regexp="(.*)/*"
>              select="\0"
>              casesensitive="false" />
>
> but I got back the whole string (abc/long/distance)
>
> Do you have any ideas?
>
> Thanks
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

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


Mime
View raw message