http://stackoverflow.com/questions/23136947/javascript-regex-to-return-letters-only
var matches = sequence.match(/[a-zA-Z0-9]+/g); matches = matches.toString(); //musi być przekonwertowany na string inaczej replace() to nie obsłuży matches = matches.replace(/,/g,''); //2 zawiasy kwadratowe dają przecinek który trzeba usunąć matches = matches.toLowerCase();