html - Regex scrape of the same form_id name but different values -


i know using either regex or xpath how can scrape form id value html page has same form_id names example below, scrape value 2nd form_id name advice best way achieve using regex or xpath? thanks

<input type="hidden" name="form_id" value="search_block_form" /> 

i scrape value form_id below: "webform_client_form_"

<input type="hidden" name="form_id" value="webform_client_form_" /> 

targeting second input xpath:

(//input[@name='form_id']/@value)[2] 

using utilities work on dom structure preferable choice here.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -