regexp_extract_all(字符串, 模板)



查询

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

结果

 regularexp 
-------------- 
 [1, 2, 3, 6] 

在此,查询仅在数字中返回与该模式指定的正则表达式匹配的字符串。

apache_presto_sql_functions.htm
广告
© . All rights reserved.