in reply to Re: More Regexp Confusion
in thread More Regexp Confusion
In reality, most likely, it'll take the form of possible HTML tags. I say possible, because there most likely will be none, but there might be some, and if they're there, they may be either opening or closing tags, or even tags with multiple attributes. I do know that any text will be lowercase. So, for instance, given $foo = 'GOAT', I want all of the following to match:
asdfgGOATaewrjgn ererGOAskjgbrTslkgjnjng ccG<!-- comment on status of global geopolitical economics -->OAjgTsvs aGO<h3>i hate clowns</h3>ATbbb
And in the last example, the output that I want would be:
I hope that helps.'a' . $stuff1 . 'GO<h3>i hate clowns</h3>AT' . $stuff2 . 'bbb'
Matt
|
---|