Parsing variable using Regular Expressions?

Comments

1 comment

  • Avatar
    juanjo

    You could use the below code:

    <setInstallerVariableFromRegEx>
        <name>var</name>
        <pattern>[^/\\]+$</pattern>
        <substitution></substitution>
        <text>C:\Program Files\myapplication\java-install-folder\jre1.6_131-windows\bin</text>
    </setInstallerVariableFromRegEx>
    

Please sign in to leave a comment.