题目内容

下面程序段的输出结果是:var reg=/a{1}/;var str="how are you";document.write(reg.test(str));

A. true
B. false
C. a
D. are

查看答案
更多问题

下面程序段的输入结果是var reg=/a{2,}/;var str="how are you";document.write(reg.test(str));

A. true
B. false
C. a
D. are

下列程序段的输出结果是:var reg=/^h/;var str="show are you";document.write(reg.exec(str));

A. true
B. false
C. null
D. h

下面程序段的输出结果是var reg=/[^ho]/var str="how are you";document.write(reg.exec(str));

A. h
B. o
C. w
D. null

下列程序段的输出结果是:var reg=/\w/;var str="你好";document.write(reg.exec(str));

A. 你
B. 好
C. 你好
D. null

答案查题题库