関数 validateEmail($email)
{ return eregi("^[_a-z0-9-] (.[_a-z0-9-] )*@[a-z0-9-] (.[a-z0-9-] )*(.[ a-z]{2,3})$", $email);
}
関数 validateURL($url)
{ return eregi("^((ht|f)tp://)((([a-z0-9-] (.[a-z0-9-] )*(.[a-z]{2,3} ))|(([0-9]{1,3}.){3}([0-9]{1,3})))((/|?)[a-z0-9~#%& '_ =:?.-]*)*)$", $url);
}
関数convertURLS($text)
{ $text = eregi_replace("((ht|f)tp://www.|www.)([a-z0-9-] (.[a-z0-9-] )*(.[a-z]{ 2,3})((/|?)[a-z0-9~#%&/'_ =:?.-]*)*)", "http://www.3", $text);
$text = eregi_replace("((ht|f)tp://)((([a-z0-9-] (.[a-z0-9-] )*(.[a-z]{2,3} ))|(([0-9]{1,3}.){3}([0-9]{1,3})))((/|?)[a-z0-9~#%& '_ =:?.-]*)*)"、"