时间:2021-07-01 10:21:17 帮助过:3人阅读
wordWordWordWord
分隔成数组
word,Word,Word,Word
正则该怎么写
比如
wordWordWordWord
分隔成数组
word,Word,Word,Word
正则该怎么写
结果:
array(7) {
[0]=>
string(4) "word"
[1]=>
string(4) "Word"
[2]=>
string(4) "Word"
[3]=>
string(4) "Word"
[4]=>
string(5) "Yello"
[5]=>
string(5) "Hello"
[6]=>
string(4) "Test"
}
楼上的正则有够复杂,来个简单的,先替换再切割: