常用的.Net 知识点

1、Replace

C#:(using System.Text.RegularExpressions;) string txt = Regex.Replace(txtLog.Text.ToString(), "/(^\s*)|(\s*$)/g", "");

js:   var txt = document.all.txtLog.value.replace(/(^s*)|(s*$)/g, "");

原文地址:https://www.cnblogs.com/mianfen/p/5683474.html