I have the following html code and i want to search for the file tag 'http://ift.tt/2daHIdo'. I have tried the following expression 'http[s]?://node(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*(),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' but it doesnt work because sometimes the domain test.com is different so the only thing that is unique is video.mp4. How can i search for video.mp4 and select all the other stuff in quotes?
Thanks for your help
p.setup({
autostart: true,
file: 'http://ift.tt/2daHIdo',
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://ift.tt/2dUg81p" frameborder="0" scrolling="no" allowfullscreen></iframe>'),
link: 'http://ift.tt/2daH1kg'
},
});
Aucun commentaire:
Enregistrer un commentaire