Search Postgresql Archives

Re: Sv: Re: Sv: Re: regex match and special characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andreas Joseph Krogh <andreas@xxxxxxxxxx> writes:
> When using E-syntax you need to double the backslash for escaping:
> andreak@[local]:5433 10.4 andreak=# select 'abcd'||chr(8198) ~ E'abcd\\s'; 

Another thing to keep in mind is that this is all locale-dependent
(specifically, LC_CTYPE, I believe).  In plain old C locale, nothing
beyond the standard ASCII whitespace characters will match \s.  I'm not
sure how universal it is for other locales to treat characters like
U+2006 as whitespace.

			regards, tom lane




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux