Question

Hi All, I have one string variable ( say value=123ABC54664PQR21MNB), I want to reverse only character from the string and not the numbers. I want the output like "123CBA54664RQP21BNM" Need help here, Thanks in advance.

  • 5 July 2022
  • 1 reply
  • 7 views

Hi All, I have one string variable ( say value=123ABC54664PQR21MNB), I want to reverse only character from the string and not the numbers. I want the output like "123CBA54664RQP21BNM" Need help here, Thanks in advance.

1 reply

Userlevel 4
Badge +7

Hi @Rahul Pawar​ ,

 

Is this what you were looking for?

 

image 

If so, then here's the solution:

 

image 

imageimageimageimage 

It was an interesting challenge, thank you for sharing it with us!

 

Kind Regards,

Ashwin A.K

 

Reply