I'm trying to scan a form, and only pull out the fields that are not type="hidden" and retrieve their name="" value, I'm currently using
@<input.*?>@
Which retrieves the following for me,
(
[0] => Array
(
[0] => <input type="email" id="Contact0Email" name="email" class="field" onfocus="if ($(this).val() == $(this).attr('title')) { $(this).val('') }" onblur="if ($(this).val()=='') { $(this).val($(this).attr('title'));}" title="Enter a valid email here" value="Enter a valid email here">
[1] => <input type="submit" class="submit" value="Get Instant Access">
)
However I do not need all the code, I'd have to scan further to get what I need, anyone could suggest what regular expression I should use to get what I need? In this example there was no hidden fields, however there may be in some others I need to run this for.