text

POSIX regex match

Searches for a POSIX pattern anywhere in a string; ~* ignores case, while !~ and !~* negate matches.

Formal Syntax & Structure

sql syntaxsql
text ~ pattern; text ~* pattern

Working Example

Example Snippetsql
SELECT 'item-42' ~ '[0-9]+$';
SQL Reference