var str = 'abc c bof abc d bof klasdf abc e;sdf bof';str.match(/(abc(.*?)bof)/g);//["abc c bof", "abc d bof", "abc e;sdf bof"]
var reg = /abc\(\.\*\)bof/g;var $data = "";var array = $data.match(reg);