title: PHP Preg_match_all in Javascript
body: <p>I've got this php code that works perfectly:</p>
  
  <pre><code>preg_match_all(
      '/&lt;div style="display:block; float:left; height:240px; width:150px;'
      . ' text-align:center; margin:5px; overflow:hidden;"&gt;.*?'
      . '&lt;span class="card-text"&gt;(.*?)'
      . '&lt;span class="instruction"&gt;\((.*?)\)&lt;\/span&gt;/s',
    $html,
    $students,
    PREG_SET_ORDER
  );
  
  foreach($students as $student) {
    echo($student[1].",".$student[2]."&lt;br /&gt;");
  }
  </code></pre>
  
  <p>How would I do this in javascript? Thanks!</p>