应该是TRUE:
kword_search1 = “#include”;
kword_search2 = “#include<iostream.h> #include”;
kword_search3 = “#include<iostream.h> #include<iostream.h> #include”;
到目前为止我所做的:
if( /include$/g.test(kword_search)
这里的问题是它只匹配 kword_search1
应该是TRUE:
kword_search1 = “#include”;
kword_search2 = “#include<iostream.h> #include”;
kword_search3 = “#include<iostream.h> #include<iostream.h> #include”;
到目前为止我所做的:
if( /include$/g.test(kword_search)
这里的问题是它只匹配 kword_search1