Re: Re: Ereg problems
| From: | Curt Zirzow | Date: | Sat, 27 Mar 2004 05:02:42 +0000 |
| Subject: | Re: Re: Ereg problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181603@lists.php.net to get a copy of this message | ||
* Thus wrote Jeff McKeon (jmckeon@telaurus.com):
>
> >
> > preg_match_all('($-?[0-9]+\.[0-9]+)', $string, $found);
> > print_r($found);
> >
>
> That produces:
>
> Array ( [0] => Array ( ) ) 0 , Array
Sorry that should be:
preg_match_all('/(\$-?[0-9]+\.[0-9]+)/', $string, $found);
Curt
--
"I used to think I was indecisive, but now I'm not so sure."