multi line js regular expression <pre><code>var Text = "start abc\ndef\nghi\njkl"; var regexAT = new RegExp("start([\s\S]*)", ''); var match = regexAT.exec(Text); alert(match[1]); </code></pre> <p>my limited js skills tell me that match[1] should contain:</p> <pre><code>abc\ndef\nghi\njkl </code></pre> <p>however match[1] is null, any tips?</p> <p><a href="http://jsfiddle.net/XE44B/" rel="nofollow">http://jsfiddle.net/XE44B/</a></p>