| От | Tom Lane |
|---|---|
| Тема | Re: Postgres regexp matching failure? |
| Дата | |
| Msg-id | 25029.1157469774@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Postgres regexp matching failure? (Mario Splivalo <mario.splivalo@mobart.hr>) |
| Ответы |
Re: Postgres regexp matching failure?
|
| Список | pgsql-sql |
Mario Splivalo <mario.splivalo@mobart.hr> writes:
> So, I guess it's obvious that postgres doesn't treat regular expressions
> the same way as java/perl/pyton/php/awk/sed do...
When you get into stuff as arcane as word-boundary constraints, you'll
find that regexes are not NEARLY as well standardized as that flippant
complaint suggests. For penance, actually try it in all six of those
languages and report back.
Postgres' regexp code is the same as Tcl's (it's Henry Spencer's package)
and if you check TFM you will find out that \y, or possibly \M, is what
you want.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера