求正则,从地址中提取指定数字跪求!

要根据如下格式,提取数字
https://ad.doubleclick.net/ddm/adi/N46002.2484100FUELX0/B{campaign_id}.{placement_id};dcopt=1_ist;dcapp=1;sz={width}x{height};ord=[timestamp]
比如字符串
"https://ad.doubleclick.net/ddm/adi/N46002.2484100FUELX0/B22585701.247364935;dcopt=1_ist;sz=300x50;ord=[timestamp]"
期望结果:campaign_id=22585701placement_id=247364935width=300height=50
最好用JS实现
九州编程
浏览 278回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript