PHP w/ Regex? Removing anything not containing the following.
Posted on 2011-03-16
Most of my links contain something that gets changed in the future like
However, I don't want INCORRECT variables to be added, when they hit save I want them to delete unless its one of the ABOVE. the vars are always wrapped in (% and %). So something like this:
Hello (%word1%), This is a test (%shoulddelete%) (%word2%)
Hello (%word1%), This is a test (%word2%)