Query regarding splitting and replacing characters in a text

Certified Associate Developer

Hi,

I have a text as shown below:

"Number of students~20"

I would like to get the output in the following format:

Number of students

:20

Kindly help me with this. Thank you.

  Discussion posts and replies are publicly visible