本帖最后由 3518228042 于 2017-9-9 21:38 编辑
这个是替换,提示不是有300楼?有可能无聊的发无限个数字英文和符号- @set @n=0;/* & echo off
- dir /b *.txt|cscript -nologo -e:jscript "%~0" ""
- exit/b & rem */
- arg = WScript.Arguments(0);
- fso = new ActiveXObject("Scripting.FileSystemObject");
- while (!WSH.StdIn.AtEndOfStream) {
- f = WSH.StdIn.ReadLine();
- txt = fso.OpenTextFile(f,1).ReadAll()
- .replace(/[\u4E00-\u9FA5][\d]{1,4}[\u4E00-\u9FA5][^\d]{5,}\r\n/g,"")
- .replace(/(?:^|\r?\n)+([^a-z\d]+)[\r\n]+/img,"\r\n");
- fso.OpenTextFile(f,2).Write(txt);
- }
复制代码 这个提取看看,不能完全确认所需- //&cls&(type *.txt|cscript -nologo -e:jscript "%~0") 2>nul>>"批量提取%.log"&pause&exit
- WSH.echo(WScript.StdIn.ReadAll().replace(/[\u4E00-\u9FA5][\d]{1,4}[\u4E00-\u9FA5][^\d]{5,}\r\n/g,"").match(/.*(QQ|微信|邮箱)?.*(.+@)?([a-z\d+\.]+).*/ig).join('\r\n'))
复制代码
|