like the long title says. How do you use PCRE to replace everything between two words like "have" and "not" in the following
$string = "the have and the havenots. Yet the haves are not there.";
so that $string becomes
"the s. Yet the there.";
as always, this is not really important, but I am curious
thanks.
PS is this the right place for posting PCRE questions? It is sort of PHP and sort of not. Maybe I should post these questions in the 'Other scripting/ coding related discussions.' forum?




Reply With Quote

Bookmarks