I would like to know how do i get the first two numbers from this :
S8130045J I only want to take out 81 Can someone please tell me how this can be done. Thank You.
$first_two = ereg_replace(\"[0-9]{0,}([0-9]{2}).*\", \"\\1\", $your_string);
$first will contain the first two numbers in $your_string
Andreas