Re: Checking if URL is on a list.

2004-08-14 Thread Zeus Odin
"Wiggins d Anconia" <[EMAIL PROTECTED]> wrote in message ... > if ($siteurl2 =~ /^(?:www.)?$FORM{'siteurl'}\/?$/) { ^^^ Keep in mind that this solution requires that the URL does not begin with "http://";. The . above needs to be backslashed; including "www.", it also OP

Re: Checking if URL is on a list.

2004-08-13 Thread Zeus Odin
Hi, J77, Your question is not exactly clear, but I will try to answer what *I* think you are asking. First, I will assume that you have a list of web sites with and without "http://www."; that you want to index like so: http://www.microsoft.com http://ibm.com www.ebay.com yahoo.com Second, I wil

Re: Checking if URL is on a list.

2004-08-13 Thread Jimstone77
In a message dated 8/10/04 4:15:12 PM Eastern Daylight Time, Jimstone77 writes: > I am not entirely sure I follow but does this do it? > > if ($siteurl2 =~ /^(?:www.)?$FORM{'siteurl'}\/?$/) { >print "Matched"; > } > > Aka optionally 'www.' followed by the submitted URL, with an optional > t

Re: Checking if URL is on a list.

2004-08-10 Thread Wiggins d Anconia
> > I know there is a much simpler way to do this. What this does is check a URL > written with and without www. or trailing / against a list of urls that (one > at a time) are placed in $siteurl2. > > $FORM{'siteurl'} is the site url being submitted. > $alternativeurl is $FORM{'siteurl'} wit

Checking if URL is on a list.

2004-08-10 Thread Jimstone77
I know there is a much simpler way to do this. What this does is check a URL written with and without www. or trailing / against a list of urls that (one at a time) are placed in $siteurl2. $FORM{'siteurl'} is the site url being submitted. $alternativeurl is $FORM{'siteurl'} without the www. i