Re: regular expression

Поиск
Список
Период
Сортировка
От Gnanavel S
Тема Re: regular expression
Дата
Msg-id eec3b03c0510042156u3c45b280h9fcb01617ca693d6@mail.gmail.com
обсуждение исходный текст
Ответ на regular expression  (gurkan@resolution.com)
Список pgsql-sql
Try this,
select substring('6768 - THY','[0-9]*');
 substring
-----------
 6768
(1 row)

On 10/4/05, gurkan@resolution.com <gurkan@resolution.com > wrote:
How do I do regular expression for the problem that I am having
I have a string called desc, and say that this string in

"TSWUU"          ------ ""
"4 - DSC"        ------ "4"
"6768 - THY"     ------ "6768"

basically string may or may not start with number,
I need substring of digits parts
""
"4"
"6768"

-------------------------------------------------
This mail sent through IMP: www.resolution.com

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster



--
with regards,
S.Gnanavel

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

Предыдущее
От: brett
Дата:
Сообщение: BirthDay SQL Issue
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: regular expression