So far this captures everything i need ending with 'em' i need regex to capture paragraphs ending in 'ppp' also.
My regex:
%<h2>Storyline</h2>(.*)em%s
I would advise not to parse HTML with regex, but this seems easy enough seeing as you aren't actually parsing it as HTML...
%<h2>Storyline</h2>(.*?)(?:em|ppp)%s
Storyline
and ends with em OR ppp (stops capturing at the first occurrence of em OR ppp) – el_pup_le Jan 09 '11 at 11:42