Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Replace string Architect

    Posted 06-05-2025 19:12

    MHuseinNasution | 2022-07-21 06:17:25 UTC | #1

    Hi

    i have sample string value like this : forgot password #stoppingid.stoppingid error display #errorcodeid.errorcodeid #support4kid.support4kid #bayarblmaktif.bayarblmaktif #belipaket.belipaket #gagalbelipaket.gagalbelipaket #novoiceid.novoiceid #langganan.langganan #internetid.internetid #layarblank.layarblank #bufferingid.bufferingid #regakun.regakun #paketerror.paketerror #liveid.liveid #lupapin.lupapin #jeniskonten.jeniskonten #kontenmola.kontenmola #errornomor.errornomor #internet4kid.internet4kid #penjmps.penjmps #nikmatimola.nikmatimola #tidaktotp.tidaktotp #kebanyakanlogin.kebanyakanlogin #tytsendiri.tytsendiri #bayar2kali.bayar2kali

    How to replace in architect all text begin # replace with space

    Please advise

    Thanks


    Kevin_Walsh | 2022-07-21 09:07:09 UTC | #2

    Hello and welcome,

    To just replace '#' with a space we can use the replace function which replaces all occurrences of a specified text in a String with different text.

    But from what I understand you wish to convert "forgot password #stoppingid.stoppingid error display #errorcodeid.errorcodeid #support4kid.support4kid ..." to "forgot password error display ..." or "forgot password stoppingid error display errorcodeid support4kid ..."

    To accomplish this I would suggest that you use the "split" function to split the string into a list of words and use the "update_data" action to set it to a variable. You could then use the loop action to loop through those words in the variable and build another string of the words you want from that list (or perform further actions on the words, e.g. if they start with #).

    Hope this helps,

    Kevin.


    system | 2022-08-21 09:07:50 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 15614