I've got what I need to do what I need to do... but I'm curious..
Consider: <input type="text" name="first1"> <input name="first2" value=""> and <input name="last" value="Smith" />
I can match just the HTML input element for the name "last" with: (<input [^>]*(?<=name="last"[^<]*)>)
And once I have that, I can match another regular express for value="(.*?)"
But is there any way to combine the capturing of the value with the capturing of the element? What makes it more difficult is that I don't know if the "value" tag will be to the left, or to the right of the "name" tag... is there a way to consistently bring that value into say match #2, using only one regular expression?