Apache-presto-regep-extract-function

提供:Dev Guides
移動先:案内検索

regexp_extract(string、pattern、group)

問い合わせ

presto:default> SELECT regexp_extract('1a 2b 3c 6f', '(\d+)', 1) as regexp;

結果

 regexp
--------
   1

クエリは、1つのグループを持つ式と一致する最初の数字を返します。