[nycphp-talk] How can PHP extract a pattern from a string intoanother string?
Phil Powell
soazine at erols.com
Thu Aug 7 12:51:41 EDT 2003
I noted, however, it wasn't intuitive to me until I read further about
$matches.
Thanx, I dare not ask what you thought of my inquiry.
Phil
----- Original Message -----
From: "David Mintz" <dmintz at panix.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Thursday, August 07, 2003 12:36 PM
Subject: Re: [nycphp-talk] How can PHP extract a pattern from a string
intoanother string?
>
> Have you had a look at
> http://www.php.net/manual/en/function.preg-match.php ? Note example 3 in
> particular.
>
> On Thu, 7 Aug 2003, Phil Powell wrote:
>
> > Once again I have to go with my native "language", TCL:
> >
> > regexp {^a=([^\n]+)\n$} $stuff {} myExtractedStuff
> >
> > How can PHP do the same thing? I want to extract a specific pattern
match from a body into another variable. What does that in PHP, the manual
does not make it clear to me?
> >
> > Thanx
> > Phil
> >
>
>
> ---
> David Mintz
> http://davidmintz.org/
> Email: See http://dmintzweb.com/whitelist.php first!
>
> Decibels of sound pressure employed by a new "thermoacoustic"
refrigerator: 190
> Decibels of sound pressure sufficient to ignite a person's hair: 165
>
> -- Harper's Index, February 2003
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list