Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 984FC9F9DBA for ; Tue, 11 Sep 2007 22:14:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 44969-06 for ; Tue, 11 Sep 2007 22:13:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from rrmailscan3.safenetbox.biz (mailscan3.reynolds.com.au [203.25.40.75]) by postgresql.org (Postfix) with ESMTP id 737A69F9C6B for ; Tue, 11 Sep 2007 22:14:02 -0300 (ADT) Received: from rrmailscan3.safenetbox.biz (rrmailscan3.safenetbox.biz [127.0.0.1]) by rrmailscan3.safenetbox.biz (Postfix) with ESMTP id 82EEB1D4842E; Wed, 12 Sep 2007 11:14:00 +1000 (EST) Received: from [127.0.0.1] (online4-new.lnk.telstra.net [139.130.169.227]) (Authenticated sender: remote) by rrmailscan3.safenetbox.biz (Postfix) with ESMTP id 672901D48461; Wed, 12 Sep 2007 11:13:59 +1000 (EST) Message-ID: <46E73D1C.4020009@autoledgers.com.au> Date: Wed, 12 Sep 2007 09:13:00 +0800 From: Paul Lambert User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: chester c young CC: ogjunk-pgjedan@yahoo.com, sql pgsql Subject: Re: Extracting hostname from URI column References: <335491.75226.qm@web54303.mail.re2.yahoo.com> In-Reply-To: <335491.75226.qm@web54303.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/90 X-Sequence-Number: 29303 chester c young wrote: >> I'm trying to use substr() and position() functions to extract the >> full host name (and later a domain) from a column that holds URLs. > > substring( href from '.*://\([^/]*)' ); > Ok, your solution looks better than mine... but I have no idea how to interpret that, time to consult some manuals. -- Paul Lambert Database Administrator AutoLedgers