Making it work with Postgres' regex