| От | Richard Huxton |
|---|---|
| Тема | Re: Removing spaces |
| Дата | |
| Msg-id | 200302201019.28765.dev@archonet.com обсуждение исходный текст |
| Ответ на | Re: Removing spaces (Darren Ferguson <darren@thread.crystalballinc.com>) |
| Список | pgsql-general |
On Wednesday 19 Feb 2003 9:25 pm, Darren Ferguson wrote:
> Don't know if this is what you are looking for but the following will
> remove them
>
> select translate('hello \nworld \n',' ','');
But surely this will remove *all* spaces, wheras Dave seemed to want only
spaces before newline characters.
> > > I would like to remove the trailing blanks between the last character
> > > and the newline. I would like to use replace with a regx like
> > > /[ ]+\n/\n/ but it does not seem to work.
--
Richard Huxton
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера