正则表达式从HTML中提取属性

时间:2010-11-17 17:59:31

标签: java regex

  

可能重复:
  RegEx match open tags except XHTML self-contained tags

我需要从name = variable

的输入中获取值
    ....
    <input type='hidden' name='variable1' value='2d331be47563423424abdb7fe2eee6401c7b00417' />
<input type='hidden' value='2d331be47563423424abdb7fe2eee6401c7b00417' name='variable2'  />
<input value='2d331be47563423424abdb7fe2eee6401c7b00417' type='hidden' name='variable3'  />
    ....

0 个答案:

没有答案