amitswba Posted December 2, 2008 Share Posted December 2, 2008 hello all, I have create a crawler for a URL. And in this url i want to fetch all data inside select tag , in this URL Select tag is as follows: <select name="menu1" onchange="MM_jumpMenu('parent',this,0)" style="width:200px;"> I want to convert this string in preg_match_all function . any one have idea for that please reply me. Thanks in advance... Amit. Quote Link to comment https://forums.phpfreaks.com/topic/135140-crawler-related-problem/ Share on other sites More sharing options...
ddrudik Posted December 2, 2008 Share Posted December 2, 2008 Show what the resulting array should look like. Quote Link to comment https://forums.phpfreaks.com/topic/135140-crawler-related-problem/#findComment-703966 Share on other sites More sharing options...
.josh Posted December 2, 2008 Share Posted December 2, 2008 /<(select[^>]*)>/ will grab everything between the < .. > if you want something more specific then as ddrudik said, be more specific. Quote Link to comment https://forums.phpfreaks.com/topic/135140-crawler-related-problem/#findComment-704159 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.