💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
一个正则表达式也可以用来分割一个字符串到几个子串: ~~~ class Main { static function main() { var str = "XaaaYababZbbbW"; var r = ~/[ab]+/g; // ["X","Y","Z","W"] trace(r.split(str)); } } ~~~