i saw that from a previous post, this works to filter out only the numbers
but how can i modify that regex to filter out only the capital or lowercase ?PHP Code:$string = "this is a STring123 test";
$numbers = preg_replace('/.*?(\d+).*/', '$1', $string);
echo $numbers;



Reply With Quote

Bookmarks