Substring RegExp Extract path

Поиск
Список
Период
Сортировка
От nicholas.wakefield@gmail.com (Nick)
Тема Substring RegExp Extract path
Дата
Msg-id b065e608.0408241902.512449e9@posting.google.com
обсуждение исходный текст
Ответы Re: Substring RegExp Extract path  (Joe Conway <mail@joeconway.com>)
Список pgsql-general
Hi,

I'm trying to extract element of a directory path stored in the db with substring

"/help/support/index/time.jsp"

and i want to extract the 1st, 2nd and 3rd parts

1st = help, 2nd = support, 3rd = index

but I can't get the regular expressions correct.

Any ideas on what I need to do.

select substring(data,'????') from paths

TIA

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

Предыдущее
От: pablo_tweek@yahoo.com (Pablo S)
Дата:
Сообщение: Possible to insert quoted null value into integer field?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Aggregate query for multiple records