按照正则切割字符串
static List<String> split(String? text, Pattern pattern) { if (isEmpty(text)) { return []; } return text!.split(pattern); }