regexp_extract(string, pattern)
查询返回与表达式匹配的第一个字符串
查询
presto:default> SELECT regexp_extract('1a 2b 3c 6f', '[a-z]+') as regexp_pattern;
regexp_pattern
----------------
a
apache_presto_sql_functions.html
查询返回与表达式匹配的第一个字符串
presto:default> SELECT regexp_extract('1a 2b 3c 6f', '[a-z]+') as regexp_pattern;
regexp_pattern
----------------
a
apache_presto_sql_functions.html
