Skip to main content

How to use regx in FS Format Template?

Comments

1 comment

  • Zendesk API User
    Author: Peter_Jodeleit - 1/26/2022 16:27

    Hi,

    your code is working perfectly fine. I wouldn't recommend such usage and it isn't efficient to do it this way, but it works.
    What I see on a first glance that the Java code and the template code differs, perhaps you double check this?

    Otherwise please use a simpler test code and work your way from there.
    Eg something like this:

    $CMS_SET(s, "x</ul>\n\n<br>x")$ $CMS_VALUE(s.replaceAll("</ul>[\n\r\s]+<br>", "</ul>"))$

     

    0

Please sign in to leave a comment.