Ben HTML aşağıdaki bit var:
<p><a href="http://vimeo.com/13114334" title="Grain & Gram: Nick Sambrato, Printmaker"><img src="http://b.vimeocdn.com/ts/747/476/74747630_200.jpg" alt="Grain & Gram: Nick Sambrato, Printmaker" /></a></p>
<p>Read the full interview with Nick Sambrato, Printmaker here:<br /><br /><a href="http://grainandgram.com/nicksambrato/" target="_blank" rel="nofollow">grainandgram.com/nicksambrato/</a></p>
<p>Cast: <a href="http://vimeo.com/grainandgram" style="color: #2786c2; text-decoration: none;">Grain & Gram</a></p>
Amacım paragraf etiketleri son seti izole etmektir. Ben paragraf etiketleri arasında maç her şey bu çalışıyorum. Benim umudum, üç sonuç almak istiyorum ve ben verileri manipüle olabilir oldu.
Ben şu normal ifadeyi çalıştı:
<p\b[^>]*>(.*?)<\/p>
Sadece paragraf etiketleri ilk seti ile eşleşen oluyor. Nasıl ben ilk iki ile maç alabilirim?
Teşekkürler
Update: I was thinking about this in the wrong way. I can't always assume that there will be X amount of information before the Cast text that I want. I can assume that Cast will be the last paragraph pulled, however. So the revised question: How can I match with everything EXCEPT the last paragraph? In other words, how do I match everything before "<p>Cast:"?