1
dieeman OP 求解
|
2
adajoy 2020-11-12 16:18:55 +08:00 1
re = /\[[^\]]*?\.\..*?\]/g
> /\[[^\]]*?\.\..*?\]/g re.exec(s) > ["[de..f]", index: 3, input: "abc[de..f]kkk[safs]sasdf[fisadfi..]5445", groups: undefined] re.exec(s) > ["[fisadfi..]", index: 24, input: "abc[de..f]kkk[safs]sasdf[fisadfi..]5445", groups: undefined] re.exec(s) > null 这样吗 |