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();
$string = preg_replace ("/[\"']/", '', $string);
http://forum.php.pl/index.php?showtopic=98808
usunięcie skrajnych cudzysłowów
http://php.net/stripslashes