/* returns true if "abc"
is found anywhere in $string. */
ereg("^abc",$string);
/* returns true if "abc"
is found at the beginning of $string. */
ereg("abc$",$string);
/* returns true if "abc"
is found at the end of $string. */
eregi("(ozilla.[23]|msie.3)",$http_user_agent);
/* returns true if client browser
is netscape 2, 3 or msie 3. */
ereg("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+
)",
$string,$regs);
/* places three space separated words
into $regs[1], $regs[2] and $regs[3]. */
ereg_replace("^","<br>",$string);
/* put a <br> tag at the beginning of $string. */
ereg_replace("$","<br>",$string);
/* put a <br> tag at the end of $string. */
ereg_replace("\n","",$string);
/* get rid of any carriage return
characters in $string. */