regexp_split(string, pattern)


Query

presto:default> SELECT regexp_split('1a2b3c6f', '\s*') as split; 

Result

          split 
------------------------------ 
 [, 1, a, 2, b, 3, c, 6, f, ] 

Split the instance of the string matched for the expression with pattern(s*).

apache_presto_sql_functions.htm
Advertisements