How can I convert "1234567890" to "x12x34x56x78x90" in Ruby?
"1234567890"
"x12x34x56x78x90"
Try this:
["1234567890"].pack('H*')
1.4m articles
1.4m replys
5 comments
57.0k users