Created
July 21, 2016 16:46
-
-
Save zxc122333/00b3f96487d5642a145658482eb2947a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require("fs") | |
fs.readFile("./UCloud.txt","utf8",function(err,data){ | |
var count = 0; | |
data.replace(/UCanUup/g,function(){count++}) | |
console.log(count) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment