ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Malorny <Klaus.Malo...@knipp.de>
Subject Re: propertyregex Extraction of last element in the PATH??
Date Mon, 02 Jan 2012 09:38:56 GMT
On 02/01/12 05:43, narenvudugu wrote:
>
> Please Find updated Post!!!!!
>
> I am trying to allow complete incoming input and extract last element name
> from the input ServiceURL path (usaly separated by /),please find below
> script which is not  working for me.......please help as soon as
> possible.....
>
> <propertyregex property="business.name" input="${ServiceURL}"
>  select="\0" override="true" casesensitive="false"/>
>

I don't know the task type, but a simple dollar sign at the end of the regular 
expression should select the last component, i.e.

   regexp="([^/]+)$"

Klaus

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


Mime
View raw message