Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | $url = 'http://soom.cz/'; | |
3 | preg_match_all('(http:\/\/[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,4}\/{1}[-_~&=\ ?\.a-z0-9\/]*)',htmlspecialchars_decode(file_get_contents($url)), $urls); | |
4 | //preg_match_all("~(http://[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,4}\/{1}[-_\~& =\?\.a-z0-9\/]*)~i", $vstup, $vystup); | |
5 | //preg_match_all('(http:\/\/[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,4}\/{1}[-_~&=\ ?\.a-z0-9\/]*)',$vstup, $vystup); | |
6 | print_r($urls); |