Apache-tajo-regexp-replace
提供:Dev Guides
regexp_replace()
次のクエリで、* regexp_replace(string text、pattern text、replacement text)*関数を確認しましょう。
問い合わせ
結果
上記のクエリは、次の結果を生成します。
クエリは、指定された正規表現パターンに一致する部分文字列を置き換えます。
次のクエリで、* regexp_replace(string text、pattern text、replacement text)*関数を確認しましょう。
default> select regexp_replace('abcdef', '(ˆab|ef$)', ‘–‘);
上記のクエリは、次の結果を生成します。
–cd–
クエリは、指定された正規表現パターンに一致する部分文字列を置き換えます。