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
> trailing slash.
> 
> If not come back and someone will get you sorted

  Ok, maybe I wasn't clear. What I want to do is check a URL against urls in 
a list, so that all six forms of the url will match so duplicates won't be 
indexed.

http:/www.mysite.com/
http:/www.mysite.com
http:/mysite.com/
http:/mysite.com
www.mysite.com/
www.mysite.com

So that the FORM{'siteurl'} will match with any of these ways a URL may have 
been listed. And maybe even just as mysite.com. Without all the || (or) 
functions in my example. Is there a simple way to do this?


Reply via email to