+ 2
Scrambled letters - javascript
How can I shuffle the letters of a string without using vector commands as the array?
1 Resposta
0
"YourText".replace(/([^aeiou])([aeiou])/g, '$2$1');
// I positioned the consonants forward and the rest backwards, thus two simple groups.