so this is a difficult problem to describe so basically to summarize with an example..
i want to capture everything from a select tag's start tag to the end tag... easy enough right? so i was thinking a regex like this (the select field in question is named 'checkoutShippingType' btw): (<[^>]*checkoutShippingType[^>]*>.*</select>) however, problem 1 is that the . doesnt match CRLF's so it cant capture the option tags etc... so i found a nifty little 'hack' that works... sorta: (<[^>]*checkoutShippingType[^>]*>[\d\D]*</select>) the idea being that [\d\D] matches everything (all digits and all Non-Digits.. which works.. unless there is another select box further into the text, then it matches everything from the correct one, to the end of the wrong one. beyond writing the whole option pattern, is there a better way to capture everything between 2 tags? thanks in advance for any help you can give! -Chris ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect Your PC from viruses, hackers, spam and more. Buy PC-cillin with Easy Installation & Support http://www.houseoffusion.com/banners/view.cfm?bannerid=61 Message: http://www.houseoffusion.com/lists.cfm/link=i:21:836 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
