Re: backslash escaping in a regex

2010-05-11 Thread Jakob Fix
Hi Stefan, eight backslashes, wow! That means four intermediate steps to get from to \ I'll probably just go with the forward slashes in the property file and pathconvert them to backslashes. thanks a lot, Jakob. On Tue, May 11, 2010 at 17:29, Stefan Bodewig wrote: > On 2010-05-11,

Re: backslash escaping in a regex

2010-05-11 Thread Stefan Bodewig
On 2010-05-11, Jakob Fix wrote: > Hi, looked through the archive, but I don't think pathconvert can be > used in this case. > property file: > prop=E:\\foo\\bar property files and backslahes are a pain. > build file: > > > > > I also tried double escaping i.e. > prop=E:foobar

RE: backslash escaping in a regex

2010-05-11 Thread Martin Gainty
Hi Jacob try this ${target.dir}/foobar.xml contents contains some well known regular expression match criteria as in space between E: foo and bar: Property=E: foo bar the ${target.dir}/foobar.xml replaceregexp transforms whitespace character to /: Property=E:/foo/bar hth Ma