| От | Matthew |
|---|---|
| Тема | String Escaping in Pattern Matching |
| Дата | |
| Msg-id | 46D3502E.3040308@voilaip.com обсуждение исходный текст |
| Ответы |
Re: String Escaping in Pattern Matching
|
| Список | pgsql-general |
Hey gang, I have three possible inputs: 18005551212 +18005551212 8005551212 Right now I am using this to strip off the +, 1, or +1: INSERT INTO ... VALUES(SUBSTRING(usernumber FROM '^\\+?1?(.*)')); This works perfect but I get all of these in the log: WARNING: nonstandard use of \\ in a string literal at character 181 If I change to this as per the doc example right above the 9.7.3 header on this page: http://www.postgresql.org/docs/8.2/static/functions-matching.html SUBSTRING(usernumber FROM '^#+?1?(.*)' FOR '#') I get NULL inserted but no WARNING's. A point if the right direction would be appreciated. Thanks, Matthew
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера