摘要:
javascript中的正则表达式对象regExp。创建regExp对象语法new regExp(pattern,attributes);直接量语法/pattern/attributes 也可以是new regExp(/pattern/attributes)注意:如果用new regExp(pattern,attributes)创建对象pattern作为一个字符串需要加引号"";如果用直接量语法,... 阅读全文
摘要:
javascript中的正则表达式对象regExp。创建regExp对象语法new regExp(pattern,attributes);直接量语法/pattern/attributes 也可以是new regExp(/pattern/attributes)注意:如果用new regExp(pattern,attributes)创建对象pattern作为一个字符串需要加引号"";如果用直接量语法,... 阅读全文
|