mercredi 13 mai 2015

Remove all newline and space from string in ruby

How do I remove all newline and space from a string x in ruby.

x can be:

123

12312313

123 1231 1231 1

I would like x to become

12312312313123123112311

Aucun commentaire:

Enregistrer un commentaire