in reply to Re: Re: How to find SELECT tag in HTML and print its values?
in thread How to find SELECT tag in HTML and print its values?
It looks like you're expecting to find everything on the same line (select class, option, and value). If so, you might as well construct one pattern to extract what you want, rather than doing the nested ifs.
For real HTML, using the modules that are designed to parse real HTML is the only sensible choice. If this is a learning exercise, you need to get a really clear idea of what you want your program to do, step-by-step, and then review your code to ensure that it is actually doing that.
|
|---|