I am trying to extract a value from HTML response but unable to. Can anyone please help me with regular expression for the below response. I tried below regular expression but, it is capturing whole response starting from Select to '"'.
I need to extract value 2 from the highlighted line in response.
Select Region<\/option>.*<option selected="selected" value="(.+?)"
Input:
<div class="col-lg-3 col-md-4 col-sm-12 form-group ">
<label> Region</label>
<select class="Grid="0" id="RegionId" name="RegionId"><option value="">Select Region</option>
<option value="9">IDX-ACO REGION CA</option>
<option value="1">IDX-REGION I</option>
**<option selected="selected" value="2">IDX-REGION II</option>**
<option value="3">IDX-REGION III</option>
<option value="5">IDX-REGION IV</option>
</select>
</div>