Reverse a string each two characters with Ruby

前端 未结 5 1777
庸人自扰
庸人自扰 2021-01-23 03:44

I want to reverse a string each two characters with Ruby.

The input:

\"0123456789abcdef\"

The output that I expect:

\"e         


        
5条回答
提交回复
热议问题