正如标题所说,我想在Windows中将ip地址与批处理匹配,请告诉我如何做到这一点?
我看到" findstr "可以匹配像" [0-9] " 这样的正则表达式,但是"findstr"如何匹配它会出现一到三次?
我试图运行一个示例服务器,但我在Windows上收到错误消息.然后我试着在我朋友的机器上运行它,但它也很顺利,Windows系统也是如此.我不知道发生了什么.让我展示源代码和错误消息:源代码:
var http = require("http");
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(8888);
Run Code Online (Sandbox Code Playgroud)
输出:
D:\test>node server.js
module.js:340
throw err;
^
Error: Cannot find module 'D:\test\server.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Run Code Online (Sandbox Code Playgroud)
Ps:server.js是要执行的文件.