2025年9月25日: PostgreSQL 18 釋出!

功能描述

regexp_count, regexp_instr, regexp_like

  • regexp_count:計算字串中與正則表示式匹配的次數。
  • regexp_instr:返回字串中正則表示式的第 N 個匹配項的起始位置。
  • regexp_like:如果正則表示式在字串中有匹配項,則返回 true。

https://postgres.tw/docs/15/functions-matching.html#FUNCTIONS-POSIX-REGEXP