> -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
: Thursday, November 13, 2003 12: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 validated, but I can't get the
period to work.. Can someone help me out?
Here's my co
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
> -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 s
Hi all,
I am trying to do a simple validation of an email address being
submitted. I have the @ sign being validated, but I can't get the
period to work.. Can someone help me out?
Here's my code..
if ($_POST['Travel_Request_Email_Address'] != "")
{
if (preg_match_all("/(@)/",
$_POS
* 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_*
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?
J.
PS. I've been on php.net trying to figure it out.
--
___
Get
"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:
on http://www.php.net/manual/en/function.preg-match-all.php there is a
regex:
$url = "http://www.catho.com.br/index.phtml";
$contents = Implode("", File($url));
preg_match_all("|href=\"?([^\"' >]+)|i", $contents, $arrayoflinks);
While(List(,$link) = Each($arrayo
12 matches
Mail list logo