Just in case anyone needs a regex that tells you that a string does NOT have an slash at the beginning, here you go. This is useful for handling paths defined by users and you want to check whether it is a relative or absolute path.
preg_match("#^(?!/).*#", $string);