PHP lookbehind in javascript
<p>For the following string, I would like to extract the date (Monday), time (6-8pm), and Location(Location1)</p>

<pre><code>Date1: Monday, 6-8pm, Location1
Date2: Tuesday, 1-3pm, Location2
Date3: Wednesday, 4-6pm, Location3
</code></pre>

<p>In PHP, I would do <code>preg_match("/(?&lt;=Date\d:\s)(.*),\s(.*),\s(.*)/", $input_line, $output_array);</code> using lookbehind regex, and  I can use $output_array to display the data separtely in an array, like:</p>

<p><code>array[0][1] = Monday, array[0][2] = 6-8pm, array[0][3] = Location1
array[1][1] = Tuesday, array[1][2] = 1-3pm, array[1][3] = Location2
array[2][1] = Wednesday, array[2][2] = 4-6pm, array[2][3] = Location3</code></p>

<p>I was just wondering how could I achieve the same thing in JavaScript?</p>

<p>Thanks!</p>