Page is a not externally linkable
darkage - 8:38 pm on Dec 26, 2008 (gmt 0)
I modified it a bit, so it's ungreedy as well as won't match words that are already contained in html: So it will match or [edited by: eelixduppy at 6:38 am (utc) on Dec. 27, 2008]
thanks coopster, that got me going in the right direction.
$patterns[0] = "/(<p>[^<]*\b)(hello)(\b[^>]*<\/p>)/isU"; <p>Hello there</p>
but not
<p><a href="/">Hello</a> there</p>
<p><table class="hello"><tr>...</tr></table> there</p>
[edit reason] disabled smileys [/edit]