我有以下HTML代码,我想搜索文件标签“http://test.com/d/wfne46sgmeikmgi3mg4kfmdgsunj4/video.mp4”。我尝试了下面的表达式'http [s]?:// node(?:[a-zA-Z] | [0-9] | [$ -_ @。& +] | [!*(), ] |(?:%[0-9a-fA-F] [0-9a-fA-F]))+'但它不起作用,因为有时域test.com是不同的所以唯一独特的是视频.MP4。如何搜索video.mp4并在引号中选择所有其他内容?
感谢您的帮助
p.setup({
autostart: true,
file: 'http://test.com/d/wfne46sgmeikmgi3mg4kfmdgsunj4/video.mp4',
type: 'mp4',
height: window.innerHeight,
image: '//cdn.test.com/thumb/hjjjgef.jpg',
startparam: 'start',
width: window.innerWidth,
abouttext:'Player',
aboutlink: 'http://www.test.com/abc',
logo: {
hide: true,
file: '//cdn.test.com/images/logo.png'
},
sharing: {
code: encodeURI('<iframe width="640" height="360" src="http://test.com/embed-fwahrhsrh.html" frameborder="0" scrolling="no" allowfullscreen></iframe>'),
link: 'http://www.test.com/fwahrhsrh'
},
});