Skip to content

Instantly share code, notes, and snippets.

@Cycymomo
Last active December 19, 2015 19:48
Show Gist options
  • Save Cycymomo/6008519 to your computer and use it in GitHub Desktop.
Save Cycymomo/6008519 to your computer and use it in GitHub Desktop.
// 140bytes - http://www.developpez.net/forums/d1362763/webmasters-developpement-web/javascript/ludique-defis-code-en-tweet/
(function parseNumbers(s){
return s.replace(/ ?s?(.)\S*/g,function(a,b){return'zudtqciehn'.search(b)})
})("un deux trois quatre cinq six sept huit neuf zero six six sept");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment