1 2 3 4 5 6 7 8 9 10
<?php $str = <<<STR test_ one two Three 45 STR; echo preg_replace('~[^A-Za-z0-9_]+~s', '', $str);
1
test_onetwoThree45