编辑:
需要拆分数组的帮助
数组示例:
array (
[0] =>
:some normal text
:some long text here, and so on... sometimes
i'm breaking down and...
:some normal text
:some normal text
)
好的,现在通过使用
preg_split( '#\n(?!s)#' , $text );
我明白了
[0] => Array
(
[0] => some normal text
[1] => some long text here, and so on... sometimes
[2] => some normal text
[3] => some normal text
)
我想得到这个:
[0] => Array
(
[0] => some normal text
[1] => some long text here, and so on... sometimes i'm breaking down and...
[2] => some normal text
[3] => some normal text
)
什么正则表达式可以获得整行并在换行时拆分!?