Re: Extracting hostname from URI column

Поиск
Список
Период
Сортировка
От chester c young
Тема Re: Extracting hostname from URI column
Дата
Msg-id 139773.62590.qm@web54303.mail.re2.yahoo.com
обсуждение исходный текст
Ответ на Re: Extracting hostname from URI column  (Paul Lambert <paul.lambert@autoledgers.com.au>)
Список pgsql-sql
> >> 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 '.*://\([^/]*)' );
> > 

typo: no backslash in front of left paren
substring( href from '.*://([^/]*)' )

match up thru //
within parens, match anything except /

return match within parens

      
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting 


В списке pgsql-sql по дате отправления:

Предыдущее
От: ogjunk-pgjedan@yahoo.com
Дата:
Сообщение: Re: Extracting hostname from URI column
Следующее
От: Paul Lambert
Дата:
Сообщение: Re: Extracting hostname from URI column