I need to extract all css file location from a file using preg_match_all etc. <link rel="stylesheet" href="css/main.css" type="text/css"> If there are link like above, i need the css file name. Here the output will be the "css/main.css" Thanks