public static function isSlug($string, $with_slash=true)
    {
        if ($with_slash)
            $match = '/'.self::SLUG_WITH_SLASH_MATCH.'/';
        else
            $match = '/'.self::SLUG_MATCH.'/';

        return preg_match($match, $string) > 0;
    }