Re: Regex Mixtake
| From: | Robert Cummings | Date: | Sat, 03 Feb 2007 20:21:27 +0000 |
| Subject: | Re: Regex Mixtake | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248252@lists.php.net to get a copy of this message | ||
On Sat, 2007-02-03 at 13:58 -0500, Manolet Gmail wrote:
> 2007/2/3, Steffen Ebermann <eseh@nognu.de>:
> > You have to use preg_match_all()
> >
> > if (preg_match_all("!\"(.+)\"!sU", $var, $match))
> >
> >
>
> oh wow! works very well... but... i take 2 days reading about ereg ='(
> there is no way to do this using ereg an not preg (PCRE)...
>
> anyway, PCRE is better that ereg?
PCRE is much more powerful than ereg(). It is considerably faster too.
However ereg() is POSIX compliant if that matters at all.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'