| От | Jakub Ouhrabka |
|---|---|
| Тема | Regular expression validation |
| Дата | |
| Msg-id | Pine.LNX.4.44.0207191148200.3396-100000@server обсуждение исходный текст |
| Ответы |
Re: Regular expression validation
|
| Список | pgsql-general |
Hi, is there any function in postgresql saying me if the given regular expression is valid? I store regular expressions in a table and then perform some searches using ~* operator. But when the stored regular expression is invalid (eg '+') then the query with ~* fails (ERROR: Invalid regular expression: ?, *, or + operand invalid.) I'd like to have a check constraint on that column storing regular expressions, so that no one can insert invalid data and cause failing of other queries... Is there any simple way? thanks, kuba
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера