Skip to main content
December 7, 2022
Question

Separate the Integer & characters

  • December 7, 2022
  • 1 reply
  • 0 views

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
    December 7, 2022

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