I've seen a few in the past, but don't have any book'd.
I do think your class is messed though ... "[<|</]" looks all wrong.
Each character should only be specified once in a class.
Also use preg over ereg, the POSIX extensions really slow ereg down.
<?
if (preg_match('/[<\/]{1,2}H+[1-5]+>+/i',$string) {
$string .= '<p>';
}
?>
...should work