How would I go about writing a regular expression that would replace <quote> and </quote> AND anything between the two tages.
For example, if there was <quote>DELETE THIS</quote>, both the tags and the "DELETE THIS" between them would be deleted.
At least a link to a good tutorial on reg expressions?
This should work for you.
<?php $string = "Some text <quote>DELETE THIS</quote> some more text"; echo $string = preg_replace("'<quote>.*?</quote>'", "", $string); ?>