Could be done in one line, but for clarity, three:

preg_match("!\[rot13\]([^[]+)\[/rot13\]!i", $body, $match);
$text = $match[1];
$rot13 = str_rot13($text);
_________________________
- Tony C
my empeg stuff