在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
using System;
using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Text.RegularExpressions; public partial class _Default : System.Web.UI.Page
{ protected void Page_Load(object sender, EventArgs e) { string a = "a!?a!?a!?a"; string b = "aa"; string standard = "!?"; //Regex reg; //string[] name = Regex.Split(a, @"\!\?", RegexOptions.IgnoreCase); string[] name = a.Split(standard.ToCharArray()); // int c = a.CompareTo((string)Session["name"]); //if (c == 0) Response.Write(c); //Response.Write(name.Length); for (int i = 0; i < name.Length; i++) { Response.Write(name[i]); Response.Write("<br>"); } } } |
请发表评论