Page is a not externally linkable
jdMorgan - 9:25 pm on Jul 23, 2009 (gmt 0)
Jim
Mostly the slashes (which delimit the entire pattern), but also literal periods. This modified pattern might be what you intended: if (code.match(/^http:\/\/(\w{0,3}\.)?youtube\.\w{2,3}\/watch\?v=[\w-]{11}/) != undefined)