【发布时间】:2013-04-30 07:32:16
【问题描述】:
我想使用 php preg_split 分割一些文本,例如:
<hr style="text-align: justify;"> or
<hr> or
<hr style="other style here">
例如文本:"text 1<hr>text 2<hr style="other style here">text 3
应该给我:
array
[0] text 1
[1] text 2
[2] text 3
试图找出正则表达式,但对我来说太难了:/
【问题讨论】:
标签: php preg-split