Hi

I want to use the propertyregex (ant-contrib) to lean up a string:

PCS-VARIABLEAPPNAME-2.8.3-85

Basically I want to strip all until the second '-', so that '-2.8.3-85' remains.

Could anyone give me a hand with the regexp and select?

<propertyregex property="pack.name"
                              input="${application.version}"
                              regexp="\-([^\.]*\)"
                              select="\1"
                              casesensitive="false" />

thanks,

Remon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to