我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

混合str_replace和正则表达式?

I want to replace a string such as:

<input type="hidden" name="id" value="12345" />

but the problem I have is that the values value (12345) is different everytime so how can I do what I'm trying to do? ..I'm guessing regex' but havent a clue

preg_replace('/\<input type="hidden" name="id" value="[0-9]+" \/\>/is', '', $source)

近期文章

  • sift特征点模板匹配检测堆叠目标
  • AttributeError:
  • csdn发布的文章需要审核多久?
  • Selenium使用ie浏览器为什么不能加载cookie?
  • PowerShell如何操作记事本?
  • 小新Air 15 IAL7系统变量path默认值是多少?
  • 存在每次library(DESeq2)不能够
  • datagrid控件数据显示
  • c++数组长度获取。?,、
  • Permission denied Python读取
  • 速度:MySQL与文件输出
  • flask安装成功,但总提示no module named flask
  • java安全随机数种子长度
  • css怎么让图片垂直居中?
  • stm32和lcd1602
  • packet tracer求解
  • 软件测试,把年月日当成一个整体
  • 文章怎么设置为私密文章/仅我可见?
  • java安全随机数算法种子
  • 实体数据模型无法添加

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华