Skip to main content
New Participant
Mar 15, 2023 12:11 PM UTC
Question

How to remove | from a text and create an array

Hi 

I Am having value as "USA|UK|Canada" like this but i want to remove the "|" from the text and create a array as {USA,UK,Canada}  so that i can write data into DB as each entry.

Can someone help here

    1 reply

    adityag9712
    Inspiring
    Mar 15, 2023 12:16 PM UTC

    split(
      "USA|UK|Canada",
      "|"
    )

    - Aditya