<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> </head> <body> <script> var str = "Visit W3Cschool"; var patt1 = /w3cschool/i; document.write(str.match(patt1)); </script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>W3Cschool教程(w3cschool.cn)</title> </head> <body> <script> var str = "Visit W3Cschool"; var patt1 = /w3cschool/i; document.write(str.match(patt1)); </script> </body> </html>
上一篇:go 变量声明
加密:为你的长字符串提供最高级别的保护!!!
问题简介:给定输入字符串和模式p,实现通配符模式匹配并支持规则’?’ 和’’注:1.’?’ 匹配任意一个字符2.’ * ’ 匹配任意一个字符串包括空字符串3.要两个字符串完全匹配而不是部分匹配
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M