<label for="form_field_1">Enter your name</label>
<input id="form_field_1" name="something_unhelpful" type="text">
Could you make the regexp match on the text inside label? The for attribute makes it obvious which form field it's referring to. The name of the input field is often something not particularly useful for matching.
The code for a form often looks like:
Could you make the regexp match on the text inside
label
? Thefor
attribute makes it obvious which form field it's referring to. Thename
of the input field is often something not particularly useful for matching.