(.+?) <\/title>/'; preg_match($regex,$output,$match); var_dump($match); echo $regex; ##If($match = '!Yahoo'){ ##print "$Yahoo Is Up";} ##else{ ##print "$yahoo is Down";} ?>