2018-05-11 postgresql 正規表現 PostgreSQL 正規表現 regexp_replaceはデフォルトでは最初のマッチだけを返すが、gフラグを最後につけることで全部を返す https://www.postgresql.jp/document/9.4/html/functions-matching.html