Hi,

had a similar problem, i've parsed a file
with regular expressions successfully,
but the changing of '\' with '/' via
regular expressions didn't work.

so i used after my regexp part =
...
<tokenfilter>
    <replacestring from="\" to="/"/>
</tokenfilter>
...

and it worked.

HTH

Regards, Gilbert


Neeraj Kumar wrote:
> input:  c:/foo/bar
> 
> desired output: c:\foo\bar
> 
> code:
> <replaceregexp file="test.properties" match="/"
>            replace="\\" flags="g"    /> 
> 
> 
> I'm getting an error. How do I achieve the desired output?
> 
> Thanks.
> - Neeraj
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to