Regular expressions getting a property value input string tag

Directly on the regular expression:

(?<=\<input.*value=\").*?(?=\")

String follows:

<form action="https://www.baidu.com" method="post" name="form">
     <input name="test_mbid" type="hidden" value="190789451">
     <input name="test_orid" type="hidden" value="5066810048">
   <input name="test_apdate" type="hidden" value="2019-07-13 19:03:25">
  <input name="test_bco" type="hidden" value="927">
  <input name="test_url" type="hidden" value="https://www.baidu.com">
  <input name="test_ursurl" type="hidden" value="https://www.baidu.com">
  <input name="test_am" type="hidden" value="100">
  <input name="test_md5" type="hidden" value="1EFD6188212E17FD7046215E5218ECC2">
  <input name="test_pna" type="hidden" value="test_pna">
</form>
<script>document.forms["form"].submit();</script>

Matching process "((?. <= \  <Input * value = \).?? = \) *" Matches the value inside the value of the test address test results are as follows: 

 Knowledge Point:

 

Guess you like

Origin www.cnblogs.com/fron/p/11183841.html