Possible Duplicate:
How to parse and process HTML with PHP?
I have the code for a number of HTML selectboxes stored in a database, e. g.:
<select id="appearance_body_style" class="cls_selectbox"> 
 <option value="">-- select --</option> 
 <option value="underweight">untergewichtig</option>
 <option value="slim">schlank</option>
 <option value="athletic">athletisch</option>
 <option value="average">durchschnittlich</option> 
 <option value="full_figured">mollig</option> 
 <option value="overweight">übergewichtig</option> 
</select>
I need two regular expressions:
- one to get the string from the value attribute.
- one to get the string between the options tags.
Everything needs to be in a loop to extract those two strings line for line.
 
     
     
    