> -Original Message-
> From: zhuravlev alexander [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 3:26 PM
> To: Jake McHenry
> Cc: 'John Nichel'; [EMAIL PROTECTED]
> Subject: Re: [PHP] preg question
>
>
> On Thu, Nov 13, 2003 at
On Thu, Nov 13, 2003 at 03:17:14PM -0500, Jake McHenry wrote:
> What else would I need to check for? I'm tired.. Running on 2 pots of
> coffee.. All I can think of is the @ and at least one . After the @,
> then at least 2 characters after the last .
>
> I haven't had much experience with regular
CTED]
> Sent: Thursday, November 13, 2003 3:09 PM
> To: Jake McHenry
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] preg question
>
>
> Jake McHenry wrote:
>
> >>-Original Message-
> >>From: Jake McHenry [mailto:[EMAIL PROTECTED]
> >>Sent
The period is a modifier within the expression (see manual on "pattern
syntax" link below). You need to escape it with a back slash:
\.
http://www.php.net/manual/en/pcre.pattern.syntax.php
--
Kevin
-Original Message-
From: Jake McHenry [mailto:[EMAIL PROTECTED]
Sent: Thursday, Novemb
Jake McHenry wrote:
-Original Message-
From: Jake McHenry [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 2:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg question
Hi all,
I am trying to do a simple validation of an email address
being submitted. I have the @ sign being va
> -Original Message-
> From: Jake McHenry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] preg question
>
>
> Hi all,
>
> I am trying to do a simple validation of an email address
> being submitted. I have the @ sign being
* Thus wrote Mike J ([EMAIL PROTECTED]):
> How do I take that and put it into a variable like $title?
print_r($matches) will answer that.
Btw, I had a typo, it should have been:
preg_match("/()(.*)(<\/\\2>)/i", $html, $matches);
Not preg_match_all().
Curt
--
"I used to think I was indecisi
* Thus wrote Mike J ([EMAIL PROTECTED]):
> I want to pull the title (example) of a webpage out of some text. The
> end result being "example". What preg function should I use and can someone give me
> the the code that will do it?
>
preg_match is what you want. And if you poke around the
preg_*
"Michael Geier" <[EMAIL PROTECTED]> wrote:
> What I need to find is all the urls in the document and make hrefs out of
> them.
>
> ie:
> http://www.mysite.com becomes href="http://www.mysite.com">http://www.mysite.com;
>
> any ideas? TIA!
I use this code in my PHPost project:
9 matches
Mail list logo