1 Reply Latest reply on Apr 13, 2016 8:29 AM by whoiskevin

    Using replace in soy only replaces the first occurrence

    johansene

      We are trying to manipulate the output string in /soy/people/profile/value.soy by using “replace(‘searchString’,’^’,’\n’) “  however it only replaces the first occurrence of the ‘^’ instead of all occurrences of the search token.

       

      Here is the code

       

      {replace(replace(replace(replace(replace(replace($value,'<BR>','\n'),'<BR>','\n'),'<BR>','\n'),'<BR>','\n'),'<BR>','\n'),'<BR>','\n')|changeNewlineToBr}    

       

      This is on Jive Hosted 8.0.1.0. Any Ideas how we could do this or is this a bug?