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 ~* patternWorking Example
Example Snippetsql
SELECT 'item-42' ~ '[0-9]+$';