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(/(@)/,
-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 validated
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
, 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 code..
if ($_POST
: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 2:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg question
Hi all,
I am
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
-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 03:17:14PM -0500, Jake McHenry wrote:
What else
* 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(/(title)(.*)(\/\\2)/i, $html, $matches);
Not preg_match_all().
Curt
--
I used to think I was
I want to pull the title (titleexample/title) 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.
--
* Thus wrote Mike J ([EMAIL PROTECTED]):
I want to pull the title (titleexample/title) 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
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) =
"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 lt;a
href="http://www.mysite.com"gt;http://www.mysite.comlt;/agt;
any ideas? TIA!
I use this code in my PHPost project:
12 matches
Mail list logo