Codice PHP:
preg_replace("#<read id='.+?'>.+?</read>#""<posted>"$text);