2013-07-03 postgresqlの検索条件に正規表現を使う方法 postgres 正規表現 = の代わりに ~ を使います。 例 where tel ~ '^\d+-\d+-\d+$' これで電話番号の後ろにキャプション等が付いていないレコードのみ抽出できます。