jigen7 Posted September 19, 2007 Share Posted September 19, 2007 can anyone help me preg match the top 5 url in the google search result the one in the green font i need to store the 5 url in a variable array Link to comment https://forums.phpfreaks.com/topic/69830-preg-match-pattern-google-search-result-help/ Share on other sites More sharing options...
effigy Posted September 19, 2007 Share Posted September 19, 2007 What have you got so far? Link to comment https://forums.phpfreaks.com/topic/69830-preg-match-pattern-google-search-result-help/#findComment-351100 Share on other sites More sharing options...
jigen7 Posted September 19, 2007 Author Share Posted September 19, 2007 none lol i just need to preg_match the green fonts where the url is im not that good in regular expression by the way im using curl to capture the googel search result instead of typical fopen Link to comment https://forums.phpfreaks.com/topic/69830-preg-match-pattern-google-search-result-help/#findComment-351455 Share on other sites More sharing options...
effigy Posted September 20, 2007 Share Posted September 20, 2007 Try #<span class=a>(\S+)(?= - \d+)#. Link to comment https://forums.phpfreaks.com/topic/69830-preg-match-pattern-google-search-result-help/#findComment-351578 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.