How to split strings in ruby? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 13

How to split strings in ruby?

im trying to get an input separated by space

22nd Aug 2018, 12:39 AM
ShortCode
3 Réponses
+ 7
<string>.split("#{text}")
25th Aug 2018, 7:08 PM
Fulcanelly
Fulcanelly - avatar
+ 12
OK thanks
29th Aug 2018, 9:51 AM
ShortCode
22nd Aug 2018, 12:46 AM
MO ELomari