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 Quote 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? Quote 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 Quote 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+)#. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.