I use propertyregex from antcontrib:
<propertyregex property="vm.propertyname" input="${vm.propertytupel}"
regexp="([^#]*)#([^#]*)"
select="\1"
defaultvalue="Error"
override="true"/>
<echo>Property vm.propertyname=${vm.propertyname}</echo>
--
Jürgen Knuplesch
-----Ursprüngliche Nachricht-----
Von: Document [mailto:[email protected]]
Gesendet: Dienstag, 31. März 2009 00:46
An: [email protected]
Betreff: How to get substring of a property
Hi,
How do I get a substring of a property? Lets say I have a property whose value
is "some.value". I want only the characters before the dot i.e.
"some". Any pointers? Please reply to me along with the
[email protected] id
Thanks
P
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]