RE: [PHP] preg question

2003-11-13 Thread Jake McHenry
> -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

Re: [PHP] preg question

2003-11-13 Thread zhuravlev alexander
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

RE: [PHP] preg question

2003-11-13 Thread Jake McHenry
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

RE: [PHP] preg question

2003-11-13 Thread Kevin Stone
: 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

Re: [PHP] preg question

2003-11-13 Thread John Nichel
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

RE: [PHP] preg question

2003-11-13 Thread Jake McHenry
> -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

[PHP] preg question

2003-11-13 Thread Jake McHenry
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

Re: [PHP] preg question

2003-10-08 Thread Curt Zirzow
* 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

Re: [PHP] preg question

2003-10-07 Thread Curt Zirzow
* 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_*

[PHP] preg question

2003-10-07 Thread Mike J
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

Re: [PHP] preg question

2001-04-12 Thread mark
"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:

[PHP] preg question

2001-04-12 Thread Michael Geier
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