I have a string which is combination of letters and digits. For my application i have to separate a string with letters and digits: ex:If my string is \"12jan\" i hav to ge
$string = "12312313sdfsdf24234"; preg_match_all('/([0-9]+|[a-zA-Z]+)/',$string,$matches); print_r($matches);
this might work alot better