App_Code/UCode.cs
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using Yu.Components;
/// <summary>
/// Summary description for UbbCode
/// </summary>
namespace Yu.Components
{
public class UCode : UserDB
{
//正则表达式
public string turnhtm(string sDetail)
{
string[] textArray1;
object[] objArray1;
Regex regex1 = new Regex(@"(\[b\])([ \S\t]*?)(\[\/b\])", RegexOptions.IgnoreCase);
Match match1 = regex1.Match(sDetail);
while (match1.Success)
{
sDetail = sDetail.Replace(match1.Groups[0].ToString(), "<B>" + match1.Groups[2].ToString() + "</B>");
match1 = match1.NextMatch();
}
regex1 = new Regex(@"(\[face=)([0-9]*)\]", RegexOptions.IgnoreCase);
match1 = regex1.Match(sDetail);
while (match1.Success)
{
sDetail = sDetail.Replace(match1.Groups[0].ToString(), "<img src='Images/Aface/" + match1.Groups[2].ToString() + ".gif'>");
match1 = match1.NextMatch();
}
regex1 = new Regex(@"(\[quote\])(.*?)(\[\/quote\])", RegexOptions.IgnoreCase);
match1 = regex1.Match(sDetail);
while (match1.Success)
{
sDetail = sDetail.Replace(match1.Groups[0].ToString(), "<div class=\"code_head\">引用内容:</div><div class=\"code_main\">" + match1.Groups[2].ToString() + "</div>");
match1 = match1.NextMatch();
}
regex1 = new Regex(@"(\[center\])(.*?)(\[\/center\])", RegexOptions.IgnoreCase);
match1 = regex1.Match(sDetail);
while (match1.Success) {
sDetail = sDetail.Replace(match1.Groups[0].ToString(), "<div style=\"text-align:center;\">" + match1.Groups[2].ToString() + "</div>");
match1 = match1.NextMatch();
}
regex1 = new Regex(@"(\[fly\](.*?)\[\/fly])", RegexOptions.IgnoreCase);
match1 = regex1.Match(sDetail);
while (match1.Success)
后面还有 269 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
