ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z W" <mpc8...@gmail.com>
Subject regular expressions in Ant
Date Tue, 25 Mar 2008 00:24:31 GMT
Hi

I have trouble converting \ to \\,  for example in
\\filer\Test\PaC\M2\5.3, to   \\\\filer\\Test\\PaC\\M2\\5.3.
I tried with ant-contrib's
	<ac:propertyregex property="html_2"
		  input="${html_1}"
		  regexp="([\]"
		  replace="\\"
		  casesensitive="false"/>

But I get errors
C:\main.xml:452: java.util.regex.PatternSyntaxException: Unclosed
character class near index 3 ([\]


 ^


Thanks for sharing

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message