replace() and Regular Expressions

Поиск
Список
Период
Сортировка
От DEV
Тема replace() and Regular Expressions
Дата
Msg-id 20051031181148.633B4DB573@svr1.postgresql.org
обсуждение исходный текст
Ответы Re: replace() and Regular Expressions  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general

Is is possible to use replace along with regular expression to remove any and all punctuation from a field?

 

If so how? 

 

I have tried: SELECT replace ('Brian\'s Co, INC.', 'Y*([.]',''),SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})');

 

The second field substring works with out a problem the replace does not! How man I make that work?

 

 

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

Предыдущее
От: Alex Turner
Дата:
Сообщение: Re: SQL injection
Следующее
От: Ben
Дата:
Сообщение: Re: SQL injection