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. 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. 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. Link to comment https://forums.phpfreaks.com/topic/135140-crawler-related-problem/#findComment-704159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.