File: unicode.sql

package info (click to toggle)
pgpcre 0.20190509-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 140 kB
  • sloc: ansic: 262; sql: 181; makefile: 19; sh: 1
file content (14 lines) | stat: -rw-r--r-- 229 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- check that it counts characters, not bytes

SELECT 'ätsch' =~ '^.....$';
SELECT 'ätsch' =~ '^......$';


-- check Unicode properties

SELECT 'ätsch' =~ '^\w+$';


-- check Unicode in pattern

SELECT 'ätsch' =~ '^ätsch$';