Regular Expressions with JavaScript no \s like in perl, so : use [\s\S]* in regex http://stackoverflow.com/questions/1068280/javascript-regex-multiline-flag-doesnt-work http://www.regular-expressions.info/javascript.html http://www.javascriptkit.com/javatutors/redev2.shtml https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions?redirectlocale=en-US&redirectslug=JavaScript%2FGuide%2FRegular_Expressions http://www.advanced-javascript-tutorial.com/RegularExpressions.cfm#.UmbpgnBwqSo #regex - #javascript - #programming