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 help
Date Fri, 16 Apr 2010 00:27:24 GMT

You might try wrapping the * in parens like

<propertyregex property="url" input="dev-abc.com:8001" regexp="dev-(*)"/>

Honestly, didn't try this - went back to look at some examples I've done 
in the past

On Thu, 15 Apr 2010, Andy2008 wrote:

>
> Here's my input
>
> dev-abc.com:8001
>
> I want abc.com:8001 back.  Below is my propertyregex
>
> <propertyregex 	property="url"
> 		input="dev-abc.com:8001"
> 		regexp="dev-*"
> 	             select="\1"								             casesensitive="false" />
>
> but <echo>${url}</echo> returns \1
>
> Do you have any ideas?
>

-- 
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