Using POSIX regular expressions in your PostgreSQL queries
Example:
SELECT first_name FROM users WHERE first_name ~ '.erem.*' LIMIT 3;
first_name
-----------------
Gillian Jeremie
Jeremy
Jeremiah
(3 rows)
http://www.postgresql.org/docs/9.3/static/functions-matching.html#FUNCTIONS-POSIX-TABLE
Written by Jeremy Raines
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Postgresql
Authors
Related Tags
#postgresql
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#