runtime_library/module.js
// Keep applying the regex to the string to find the last instance of it
Keep applying the regex to the string to find the last instance of it
Keep applying the regex to the string to find the last instance of it
function execToLastInstance(string, regex) {
    var prev;
    var result;
    while((result = regex.exec(string)) !== null) {
      prev = result;
    }
    return prev;
  }
function execToLastInstance ( string , regex ) { var prev ; var result ; while ( ( result = regex . exec ( string ) ) !== null ) { prev = result ; } return prev ; }
Keep applying the regex to the string to find the last instance of it
Keep applying the regex to the string to find the last instance of it