I have a regular expression that I have to find blocks of all html select lists, such as the following:
My regular expression is: <SELECT[^>]*>(\w|\W)*(</SELECT>?)
The problem with this is that it matches anything from the top select tag down to the very last one, thus my result set can have a multitude of other information if there are multiple dropdown boxes on the same page.
How can I make it stop on the first occurance of a closing select tag ("</SELECT>") rather than parsing the rest of the content through the last instance of the </SELECT>? I've tried a bunch of things, but no luck.