09 2012 档案
摘要:using System;using System.Web;namespace RTXEX.Common{ /// /// 全局类,获取当前域名、物理路径 /// public class WebApplication { static string _appUrl = null; static string _appSiteName = null; static string _appMapPath = null; /// /// 获得url路径, http://localhost/aa...
阅读全文
摘要:string pattern = @"\[/(\w+)\]";string result = System.Text.RegularExpressions.Regex.Replace("owjfdsl聊天消息,表情[hanx]j1111lsjfs", pattern, "");result 就是转换后的字符串。另,附一个别处找来的,关键字正则替换的扩展方法:public static class StringManipulation{ public static string PregReplace(string input, str
阅读全文
摘要:set fso = CreateObject("Scripting.FileSystemObject")'Files属性获取文件集合时,与CMD下的for遍历文件有相同的Bug:'如果文件名有变动,可能会重复或多次遍历'看来是某个API的Bug'所以先获取文件列表再使用保险一点FileList = ""for each oFile in fso.GetFolder(".").Files if LCase(fso.GetExtensionName(oFile.Path)) = LCase("tx
阅读全文

浙公网安备 33010602011771号