Re: Sv: Re: regex match and special characters
От | Adrian Klaver |
---|---|
Тема | Re: Sv: Re: regex match and special characters |
Дата | |
Msg-id | 79587b6b-1b3b-e96f-160b-f5c55fccb391@aklaver.com обсуждение исходный текст |
Ответ на | Sv: Re: regex match and special characters (Andreas Joseph Krogh <andreas@visena.com>) |
Ответы |
Sv: Re: Sv: Re: regex match and special characters
|
Список | pgsql-general |
On 08/16/2018 07:04 AM, Andreas Joseph Krogh wrote: > char(2006) produces the wrong character as 2006 is the hex-value. You > have to use 8198: > andreak@[local]:543310.4 andreak=# select version(); > ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ > │ version > │ > ├────────────────────────────────────────────────────────────────────────────────────────────────┤ > │ PostgreSQL 10.4 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu > 7.3.0-16ubuntu3) 7.3.0, 64-bit │ > └────────────────────────────────────────────────────────────────────────────────────────────────┘ > (1 row) > > andreak@[local]:543310.4 andreak=# select 'abcd'||chr(8198) ~ 'abcd\s'; > ┌──────────┐ > │ ?column? │ > ├──────────┤ > │ t │ > └──────────┘ > (1 row) Argh, read the wrong line. Thanks for the correction. Still: test=# select version(); version ------------------------------------------------------------------------------------ PostgreSQL 10.5 on x86_64-pc-linux-gnu, compiled by gcc (SUSE Linux) 4.8.5, 64-bit (1 row) test=# select 'abcd'||chr(8198) ~ E'abcd\s'; ?column? ---------- f (1 row) > -- > *Andreas Joseph Krogh* > CTO / Partner - Visena AS > Mobile: +47 909 56 963 > andreas@visena.com <mailto:andreas@visena.com> > www.visena.com <https://www.visena.com> > <https://www.visena.com> -- Adrian Klaver adrian.klaver@aklaver.com
В списке pgsql-general по дате отправления: