我想按空格和特殊字符拆分字符串。例如:表示移动交换中心(信号强度)。 目前,我使用正则表达式来拆分字符串,并且我无法同时实现空格和特殊字符的拆分。更新的代码: insert into tmp(word)
select regexp_substr('For expressing mobile switching
我试图按空格拆分字符串,但在每个元素之后保留空格。这样'This is a string'就会变成['This ', 'is ', 'a ', 'string']。输入字符串可以包含单词、数字或特殊字符。var words = text.split(/(\w+\s)/).filter(x => x !==