el_pup_le
el_pup_le

Reputation: 12179

PHP regex needed

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

Upvotes: 0

Views: 54

Answers (1)

BoltClock
BoltClock

Reputation: 723688

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

Upvotes: 1

Related Questions