When I am doing something like this:
<propertyregex input="${escaped.std}" regexp=".*[/\\]data[/\\](.*)" select="\1" property="relative.std"/>
where escaped.std is ex: c:\test\data\subfolder1\subfolder2
it returns subfolder1subfolder2 (the path without the ‘\’)
I tried to change ‘\’ to ‘\\’ but it just removed ‘\\’ from the path.
Where is the problem?
Try using the latest version of ant-contrib.
It does work fine when using ant-contrib 1.0b2 (I get the same issue when using version 0.6).