On Fri, Nov 10, 2006 at 03:55:38PM +0000, Hans wrote:
> Hi,
> how do I extract all digits from a mixed string,
> for instance
> abc 123.456de => 123456
> (anything removed but the digits)
$x = preg_replace('/\\D+/', '', $x);
(replace all non-digits with '').
Pm