跳转到内容

按正则表达式模式拆分字符串,并返回子字符串数组。

func.regexp_split('one1two2three', '[0-9]')
func.regexp_split('one1two2three', '[0-9]')
┌───────────────────────┐
│ ["one","two","three"] │
└───────────────────────┘
REGEXP_SPLIT(<str>, <pattern>)
SELECT REGEXP_SPLIT('one1two2three', '[0-9]');
┌───────────────────────┐
│ ["one","two","three"] │
└───────────────────────┘