javaScript Regex Match любого персонажа, включая Newline
//([\s\S]*?) matches any character including newline
var result = str.match(/<script>([\s\S]*?)<\/script>/g)
Friendly Hawk