Regular Expression to find hidden fields in html
问题 I am looking for a regular expression to find all input fields of type hidden in html output. Anyone know an expression to do such? 回答1: I agree that the link Radomir suggest is correct that HTML should not be parsed with regular expressions. However, I do not agree that nothing meaningful can be gleaned from their use together. And the ensuing rant is totally counter-productive. To correct Robert's RegEx: <([^<]*)type=('|")hidden('|")>[^<]*(/>|</.+?>) 回答2: I know you asked for regular