Skip to main content
March 15, 2023
Question

How to remove | from a text and create an array

  • March 15, 2023
  • 1 reply
  • 0 views

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
    March 15, 2023

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