You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by narenvudugu <na...@gmail.com> on 2012/01/02 05:43:35 UTC
Re: propertyregex Extraction of last element in the PATH??
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}"
regexp="([^/]+)" select="\0" override="true" casesensitive="false"/>
ServiceURL may contain url like abc/hello/world/etc....
--
View this message in context: http://ant.1045680.n5.nabble.com/propertyregex-Extraction-of-last-element-in-the-PATH-tp5109384p5114022.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: propertyregex Extraction of last element in the PATH??
Posted by narenvudugu <na...@gmail.com>.
Thanks Klaus Malorny!!!!!!
It's Working for me,i was struggling since 3 last days u saved my lot's of
time!!!!!!..........Thank you very much!!!!!!!!!!
--
View this message in context: http://ant.1045680.n5.nabble.com/propertyregex-Extraction-of-last-element-in-the-PATH-tp5109384p5114617.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: propertyregex Extraction of last element in the PATH??
Posted by Klaus Malorny <Kl...@knipp.de>.
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