[pmwiki-devel] preg_split

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 7 08:45:18 CST 2008


On Fri, Mar 07, 2008 at 11:16:32AM +0000, Hans wrote:
> 
> How can I split a page text into fragments with preg_split
> and have the split pattern not removed, but retained in the resulting
> fragments (or added back to each fragment)?

See the PREG_SPLIT_DELIM_CAPTURE option of the preg_split
function.

Pm



More information about the pmwiki-devel mailing list