N
noon
I'm runing an xmlHttpRequest to get the site's source code and then
applying the regex
xhr.responseText.split(/<body[^>]*>((?:.|\n)*)<\/body>/i)[1]
Works for google.com. Fails on yahoo.com and imdb.com pages (ex:
http://imdb.com/title/tt0482606/ )
Can someone help me tweak this, or give insight as to why its
failing? I can't spot it
applying the regex
xhr.responseText.split(/<body[^>]*>((?:.|\n)*)<\/body>/i)[1]
Works for google.com. Fails on yahoo.com and imdb.com pages (ex:
http://imdb.com/title/tt0482606/ )
Can someone help me tweak this, or give insight as to why its
failing? I can't spot it