Off the top of my head, try something like:
preg_match('/(\d+)/', $var, $matches);
then look what's in $matches.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -----Original Message-----
> From: Alberto. Sartori [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] reg exp
>
>
> Hi guys, I need to make a right pattern to extract only
> digits from a string like this:
>
> "Hello 12 28 99 World"
>
> Any idea? I've red lots of docs, but I'm newbie about regexp
> Thanks in advance,
>
> regards, Alb
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php