cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Vincelli ...@alessandro.vincelli.name>
Subject Re: repalce function in Flowscript ?
Date Mon, 08 May 2006 08:48:49 GMT
Hi Luca,

the replace method accpet only java.lang.Character

from javadoc
String replace(char oldChar, char newChar)

you can try with

filters.replace("/a/g", "b");

I hope I helped you

Ciao

Luca Morandini ha scritto:
> Folks,
> 
> I tried to do the following in a Flowscript function of mine:
> filters.replace(/a/g, "b");
> 
> ...only to be rewarded with:
> file:/var/www/obsydyan/scripts/controller.js", line 246: Cannot convert 
> /a/g to java.lang.Character
> 
> Any clue ?
> 
> Regards,
> 
> --------------------
>    Luca Morandini
> www.lucamorandini.it
> --------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
-------------------------------
Alessandro Vincelli
E-mail: av@alessandro.vincelli.name
tel: +39 339 8695546


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message