单项选择题

<p class="MsoNormal"> var str = "";
var reg = /]+>/g;一下哪个选项返回的是true()

A.str.match(reg)
B.reg.test(str)
C.reg.exec(str);
D.str.search(reg)