preg_match("/([\d]+)/", "abc^+'^%'^%'^% 234234 '^+'^+'^+'^+", $matchNumbersOnly);
echo $matchNumbersOnly[1];