[pmwiki-users] How to do multiline regexps in PHP?

Ryan Varick rvarick at gmail.com
Tue Nov 1 12:58:54 CST 2005

I'm working on RSS syndication for my PmWiki blog project
(http://www.ryanvarick.com/Blog/Index), using RSSSimple as a base
recipe.  I have the following regexp to extract post information:

$num_matches = preg_match_all("/\(:div\
$blogdateFmt:\)\n(.*)\n\(:divend:\)\n(.*)/", $source, $match,

This is nearly what I want; only, it just returns the first paragraph.
 I don't know what to tell PHP for it to ignore newlines.  I'm sure
it's something simple.


More information about the pmwiki-users mailing list