大家看看这个正则怎么写?

82417 2008-05-12 12:25:22
goodsinfo.asp?id=MTIxMjA=把这个转换成MTIxMjA=index.html .(MTIxMjA=)是随机的.比如goodsinfo.asp?id=NjM2OQ==

...全文
31 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
嘴哥臭鼬 2008-05-31
  • 打赏
  • 举报
回复
js中可以这样
var reg = /goodsinfo\.asp\?id=(\S+)/g
reg.replace("goodsinfo.asp?id=MTIxMjA=",function(a,b){return a++"index.html"})
langtse 2008-05-12
  • 打赏
  • 举报
回复
/goodsinfo\.asp\?id=(\S+)/
RegExp.$1+"index.html"
langtse 2008-05-12
  • 打赏
  • 举报
回复
/goodsinfo\.asp\?id=(\S+)/
RegExp.$1.html

10,613

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧