-1
다음 html 코드가 있는데 파일 태그 'http://test.com/d/wfne46sgmeikmgi3mg4kfmdgsunj4/video.mp4'을 검색하고 싶습니다. 다음 표현식 'http [s]? : // node (? : [a-zA-Z] | [0-9] | [$ -_ @. &+] | [! *()]를 시도했습니다. 도메인 test.com이 다른 경우가 있기 때문에 작동하지 않습니다. 유일한 유일한 것은 동영상입니다. mp4. video.mp4를 검색하고 따옴표로 된 다른 모든 것들을 어떻게 선택할 수 있습니까? video.mp4
로 끝나는 인용 문자열과 일치하는 당신의 도움이Regex가 단어를 검색하고 qutoes의 모든 텍스트를 선택하십시오.
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'
},
});
, 당신이 게시 된 표현을 일치하는 패턴과 거의 완전히 관련이 없습니다 ... 어디서 얻었습니까? – brianpck
죄송합니다. html.i를 고르려고 html 파일에서 발췌 한 것입니다. – Octo
대부분 node.test.com/d/......./video.mp4가 있습니다. – Octo