I'm still trying to find an answer for this question. I've searched the
documentation on regexp which appears to apply to mapping or selecting
filenames based on a regular expression. I just want to do a string
replace on a property value using a regular expression. Any other
ideas? Just point me to the appropriate ant documentation.
thanks
Tony
>Date: Mon, 17 Feb 2003 07:02:34 +1000
>To: ant-user@jakarta.apache.org
>From: Tony Obermeit <tonyob@compuserve.com>
>Subject: Creating property using regular expression on string/property value
>
>I have a property value that I want to use for part of a file name but the
>property value sometimes includes spaces that I don't want to include in
>the filename. I am looking to create a new property value but apply a
>regular expression to an existing property value when I create it. The
>examples I've seen seem to do this with replacing tokens within an
>existing file, I want to do it effectively within a string in my build script.
>
>Thanks
>
>Tony
|