I've question about how to get value from input html when the tag position is dynamic. This is the example input:
<input type="text" autocomplete="" name="confirmedEmailAddress" id="emailaddress" maxlength="60" value="fname.lname@gmail.com" class="txt-box txtbox-m " aria-describedby="" aria-required="true" disabled="disabled">
<input type="text" autocomplete="" value="fname.lname@gmail.com" name="confirmedEmailAddress" id="emailaddress" maxlength="60" class="txt-box txtbox-m " aria-describedby="" aria-required="true" disabled="disabled">
This is what I'm able to do, but can not detect if tag value position before id position like in the second example.
/<input(?:.*?)id=\"emailaddress\"(?:.*)value=\"([^"]+).*>/i