1、js截取两个字符串之间的内容:
let str = "aaabbbfff";
let result = str.match(/aaa(\S*)fff/)[1]; // bbb
2、js截取某个字符串前面的内容:
let str = "aaafffbbb";
let result = str.match(/(\S*)fff/)[1]; // aaa
3、js截取某个字符串后面的内容:
let str = "aaafffbbb";
let result = str.match(/aaa(\S*)/)[1]; // fff