Skip to main content
Known Participant
Dec 7, 2022 11:08 AM UTC
Question

Separate the Integer & characters

Hi all,

I have use case where i need to separate the characters & integer value example- I/p: "ABCD1234"  output: ABCD, 1234   , i/p "A22B45" o/p: AB , 2245

Thanks in advance

    1 reply

    stefanhelzle0001
    Brainy
    Dec 7, 2022 11:31 AM UTC

    a!localVariables(
      local!mixed: "A22B45",
      {
        cleanwith(local!mixed, "0123456789"),
        stripwith(local!mixed, "0123456789"),
      }
    )