preg_match('/(http|ftp|mailto)/', $string, $matches); var_dump($matches);
if(strpos($_SERVER['REQUEST_URI'], "string")) { ... }