no raining now go to school and play with code 你. findstr "\<go code\>" 这样就能匹配输出包含go到code的文本了 看起来丑,其实也就是\斜线加尖括号 (转义而已) echo "go to school and play with code 你." | findstr "\<go code\>" 结果: "go to school an
var pattern=/g..gle/; //点符号表示匹配除了换行符外的任意字符 var str='g78gle'; alert(pattern.test(str)); var pattern=/go*gle/; //o* ,表示0个或者多个o var str='goooooooooooogle'; alert(pattern.test(str)); var pattern=/go+gle/; //o+,表示一个或者多个o var str='gogle'; alert(pattern.tes