关于正则表达式声明 6 位数字的邮编,以下代码正确的是( )
A.var reg = /\d6/; B.var reg = \d{6}\; C.var reg = /\d{6}/; D.var reg = new RegExp(“\d,6-”);正确答案C
关于正则表达式声明 6 位数字的邮编,以下代码正确的是( )
A.var reg = /\d6/; B.var reg = \d{6}\; C.var reg = /\d{6}/; D.var reg = new RegExp(“\d,6-”);正确答案C