Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想替换一个字符串,例如:
<input type="hidden" name="id" value="12345" />
但我遇到的问题是值(12345)每次都不同,所以我该怎么做?..我猜是正则表达式,但没有线索
preg_replace('/\<input type="hidden" name="id" value="[0-9]+" \/\>/is', '', $source)