Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers?
<?php $string = "asd98.a98asd/7987asd"; $numberless = preg_replace_all( "/[^0-9]/", "", $string ); ?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php