regexp problem
| From: | Morten Johansen | Date: | Sat, 07 Oct 2000 02:01:27 +0000 |
| Subject: | regexp problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19016@lists.php.net to get a copy of this message | ||
Hi there,
I'm trying to analyze webpages containing pulldown menus (<select></select>)
So far I've done ok with assuming theres only one pulldown menu on the page,
but when I'm trying to analyze pages with multiple pulldowns, I get in
trouble (it only take the first pulldown available)..
Using eregi("<select(.+)</select>", $htmlcode,$selectcode) now to find the
code of the pulldown menu.. What I'd like to do is upgrade the script so
that it find all the pulldowns, was thinking if there was some kind of
property to ereg that puts all the instances of the regexp into a big
array...
Please email me someone if you got a suggestion, as I dont check php.general
often..
Regards,
Morten Johansen
morten@pointsol.com