local m.xpattern,m.url m.xpattern='/https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[?=&+%\w-]*/ig;' m.url="http://www.zyoutube.com/watch?v=GUEZCxBcM78&feature=pyv&feature=pyv&ad=10059374899&kw=%2Bwingsuit" ******************* local regexObj regexObj = createobject('VBScript.RegExp') regexObj.Global = .t. regexObj.IgnoreCase = .f. regexObj.Pattern =m.xpattern *............ ***************result must be: GUEZCxBcM78
.youtu.be/NLqAF9hrVbY .youtube.com/embed/NLqAF9hrVbY .youtube.com/embed/NLqAF9hrVbY .youtube.com/v/NLqAF9hrVbY?fs=1&hl=en_US .youtube.com/watch?v=NLqAF9hrVbY .youtube.com/user/Scobleizer#p/u/1/1p3vcRhsYGo .youtube.com/ytscreeningroom?v=NRHVzbJVx8I .youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/2/PPS-8DMrAn4 .gdata.youtube.com/feeds/api/videos/NLqAF9hrVbY .youtube.com/watch?v=spDj54kf-vY&feature=g-vrec youtube.com/watch?v=GUEZCxBcM78&feature=pyv&feature=pyv&ad=10059374899&kw=%2Bwingsuit