var str = "That is a good example.";var re = /is(.*?)mple/;var subStr = str.match(re)[1];console.log(subStr); 

运行结果: