I want to extract numbers from a string in PHP like following :
if the string = \'make1to6\' i would like to extract the numeric charac
A regex seems really unnecessary here since all you are doing is checking is_numeric() against a bunch of characters.
is_numeric()