字串 regexp 必須是 JAVA 正則運算式。 未逸出字串常值。 例如,若要比對 '\abc' ,的 regexp 正則運算式可以是 '^\\abc$'

如果格式 regexp 不正確,函式會傳回 INVALID_PARAMETER_VALUE 錯誤。

如果其中一個引數為 NULL ,則結果為 NULL

> SELECT regexp_count('Steven Jones and Stephen Smith are the best players', 'Ste(v|ph)en');
> SELECT regexp_count('Mary had a little lamb', 'Ste(v|ph)en');
> SELECT regexp_count(NULL, 'Ste(v|ph)en');
> SELECT regexp_instr('Mary had a little lamb', NULL);
  • ilike 運算子
  • like 運算子
  • RegExp 運算子
  • RegExp_extract_all函式
  • RegExp_instr函式
  • RegExp_replace函式
  • RegExp_substr函式
  • rlike 運算子
  • split 函式
  •