Re: Re: preg_match question...
| From: | Alpár Török | Date: | Fri, 06 Feb 2009 15:14:59 +0000 |
| Subject: | Re: Re: preg_match question... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287820@lists.php.net to get a copy of this message | ||
2009/2/6 Shawn McKenzie <nospam@mckenzies.net>
> bruce wrote:
> > hmmm...
> >
> > tried your preg__match/regex...
> >
> > i get:
> > 0 - 1145 total
> > 1 - 1145
> > 2 - l
> >
> > i would have thought that the 2nd array item should have had "total"...
> >
>
> Probably want this: '#(\d+)(.+)#'
That's it sorry. Take a look at preg_match_all(), you can put the total in
you regexp like /^([0-9]+) total/
>
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Alpar Torok