On Fri, 27 Aug 2004, Quentin Smith wrote: > Date: Fri, 27 Aug 2004 10:31:53 -0400 (EDT) > From: Quentin Smith <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: [analog-help] http://www.[anysite] = http://[anysite] > > I'm not sure if Analog supports full perl regular expressions, but if it does: > http://(?!www\.).*\.com > will match a URL that does not begin with www. Silly me, assuming all the URLs are .com's. http://(?!www\.)* > > It might be advantageous to use this instead: > http://(?!www\.)[^.]+\.com Not sure how to do this without a .com, perhaps something like: http://(?!www\.)[^.]+\.[a-zA-Z]+
> > That will match only URLs with two parts in the hostname, hopefully fixing > at least some of the problems that result from prepending www. > willy-nilly. > --Quentin > +------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.isite.net/listgate/analog-help/unsubscribe.html | | Digest version: http://lists.isite.net/listgate/analog-help-digest/ | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------