On Sat, February 3, 2007 12:58 pm, Manolet Gmail wrote:
> anyway, PCRE is better that ereg?
Yes!
Faster, easier, more flexible, and better documented.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
On Sat, 2007-02-03 at 13:58 -0500, Manolet Gmail wrote:
> 2007/2/3, Steffen Ebermann <[EMAIL PROTECTED]>:
> > 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
Side note:
$exp = explode('"', $var);
foreach ($exp as $key => $val) if ($key%2!=0) $arr[] = $val;
var_dump($arr);
works without regular expressions.
--
Steffen
On Sat, Feb 03, 2007 at 12:36:59PM -0500, Manolet Gmail wrote:
> Hi, i have a problem using regex, i want to get all the text b
well thanks you too much, i will learn the preg sintax.
2007/2/3, Steffen Ebermann <[EMAIL PROTECTED]>:
I don't know, but http://php.net/manual/en/function.ereg.php says
"Note: preg_match(), which uses a Perl-compatible regular expression
syntax, is often a faster alternative to ereg
I don't know, but http://php.net/manual/en/function.ereg.php says
"Note: preg_match(), which uses a Perl-compatible regular expression
syntax, is often a faster alternative to ereg()."
On Sat, Feb 03, 2007 at 01:58:50PM -0500, Manolet Gmail wrote:
> anyway, PCRE is better that ereg?
2007/2/3, Steffen Ebermann <[EMAIL PROTECTED]>:
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
You have to use preg_match_all()
if (preg_match_all("!\"(.+)\"!sU", $var, $match))
On Sat, Feb 03, 2007 at 12:36:59PM -0500, Manolet Gmail wrote:
> Hi, i have a problem using regex, i want to get all the text between " "
>
> so i try this...
>
> $subject = 'menu "Archer?",-,"Chief?",L_Menu2,
7 matches
Mail list logo