I am new to Ant and XML and i need some help in a problem.
I want to create a root folder whose name would be something like
[number][timestamp][some_strings]_etc
I will show you my first piece of code, where i just read the values from the file.
<target name="create">
<loadfile srcfile="new.txt" property="fisier" />
<for param="line" list="${fisier}" delimiter="${line.separator}">
<sequential>
<echo>@{line}</echo>
<propertyregex property="item"
input="${line}"
regexp="regexpToMatchSubstring"
select="\1"
casesensitive="false" />
</sequential>
</for>
</target>
From the values i read, i need to subtract a string with a regexp. I have something like id=2344 and i need only the number, meaning the string from the right of the equal sign. How can i do that?