RE: [PHP] Regular expression - URL validator

2007-08-29 Thread Wagner Garcia Campagner
I also tried with the strstr function, but receive the same response. Thanks in advance, Wagner. -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: terça-feira, 28 de agosto de 2007 18:35 To: [EMAIL PROTECTED] Cc: PHP General Subject: Re: [PHP] Regular expression - URL

Re: [PHP] Regular expression - URL validator

2007-08-29 Thread Jim Lucas
Wagner Garcia Campagner wrote: Thanks again Jim, That's what i really need. I'm testing this function... If i put a URL like www.example.com, then it works fine and turns it to http://www.example.com But if i put a URL like http://www.example.com, then it also put another header so it turns

RE: [PHP] Regular expression - URL validator

2007-08-29 Thread Richard Lynch
: Re: [PHP] Regular expression - URL validator Wagner Garcia Campagner wrote: Hello, I found this regular expression on a web site. It is basicaly an URL validator. I'm trying to implement this in my web site, but i receive errors. I think this is a PERL REGEX so what should

RE: [PHP] Regular expression - URL validator

2007-08-28 Thread Wagner Garcia Campagner
: segunda-feira, 27 de agosto de 2007 17:36 To: PHP General; [EMAIL PROTECTED] Subject: Re: [PHP] Regular expression - URL validator Wagner Garcia Campagner wrote: Hello, I found this regular expression on a web site. It is basicaly an URL validator. I'm trying to implement this in my web

Re: [PHP] Regular expression - URL validator

2007-08-28 Thread shiplu
. -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 27 de agosto de 2007 17:36 To: PHP General; [EMAIL PROTECTED] Subject: Re: [PHP] Regular expression - URL validator Wagner Garcia Campagner wrote: Hello, I found this regular expression on a web

Re: [PHP] Regular expression - URL validator

2007-08-28 Thread Jim Lucas
Wagner Garcia Campagner wrote: Thanks Jim, Your sugestion worked perfect for me!! I have another question: After i validate this URL i want to put a link with this URL in my page. The problem is that if the URL is like (www.aol.com), when i create the link, this URL is appended with the URL

[PHP] Regular expression - URL validator

2007-08-27 Thread Wagner Garcia Campagner
Hello, I found this regular expression on a web site. It is basicaly an URL validator. I'm trying to implement this in my web site, but i receive errors. I think this is a PERL REGEX so what should i do to make it work in php? $valid =

Re: [PHP] Regular expression - URL validator

2007-08-27 Thread Jim Lucas
Wagner Garcia Campagner wrote: Hello, I found this regular expression on a web site. It is basicaly an URL validator. I'm trying to implement this in my web site, but i receive errors. I think this is a PERL REGEX so what should i do to make it work in php? $valid =