[w]*)[s]*=[s]*(?[x25w/:/.-]*)",RegexOptions.Compiled);stringstrExp=@"(?[w]*)[s]*=[s]*(?[x25wsS/:/.-]*)";returnnewSystem.Text.RegularExpressions.Regex(strExp,RegexOptions.Compiled);}}-IMDN开发者社群-imdn.cn"> [w]*)[s]*=[s]*(?[x25w/:/.-]*)",RegexOptions.Compiled);stringstrExp=@"(?[w]*)[s]*=[s]*(?[x25wsS/:/.-]*)";returnnewSystem.Text.RegularExpressions.Regex(strExp,RegexOptions.Compiled);}} - IMDN开发者社群-imdn.cn">
登录
首页 » C# » bbcode 转换成 html 示例源码(亲测通过) discuz 帖子可用

bbcode 转换成 html 示例源码(亲测通过) discuz 帖子可用

于 2014-07-18 发布
0 208
下载积分: 1 下载次数: 0

代码说明:

如果你的bbcode含中文 需将这里改下: public static System.Text.RegularExpressions.Regex OptionRegex { get { //return new System.Text.RegularExpressions.Regex(@"(?[w]*)[s]*=[s]*(?[x25w/:/.-]*)", RegexOptions.Compiled); string strExp = @"(?[w]*)[s]*=[s]*(?[x25wsS/:/.-]*)"; return new System.Text.RegularExpressions.Regex(strExp, RegexOptions.Compiled); } }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C#开发的一套酒店管理系统(源码+数据库+ppt)
    酒店因日常管理特别繁琐,希望我方提供一个能集日常一些需要做的事为一体的酒店管理系统
    2021-05-06下载
    积分:1
  • Aspose.Cells 导出excel 示例源码(C#)
    Aspose.Cells 导出excel 示例源码(C#)
    2017-10-31下载
    积分:1
  • C标准库函数大全.chm
    C语言标准库函数大全.chm
    2020-12-07下载
    积分:1
  • 数字信号处理 西安电子科技大学高西全编著ppt课件
    非常好的重点大学教材,很难得的 【文件目录】 数字信号处理(第四版)高西全 ├── 第1章 时域离散时间信号和时域离散系统.pptx├── 第2章 时域离散信号和系统的频域分析-1.ppt├── 第2章 时域离散信号和系统的频域分析-2.ppt├── 第2章 时域离散信号和系统的频域分析-3.ppt├── 第3章 离散傅里叶变换(DFT).ppt├── 第4章 快速傅里叶变换(FFT).ppt├── 第5章 时域离散系统的网络结构.ppt├── 第6章 无限脉冲响应数字滤波器的设计.ppt├── 第7章 有限脉冲响应数字滤波器的设计.ppt├── 第8章 多采样率数字信号处理.ppt└── 第9章 数字信号处理的实现 .ppt0 directories, 11 files
    2021-05-06下载
    积分:1
  • C#解压缩
    【实例简介】C# 解压缩
    2021-12-22 00:31:19下载
    积分:1
  • C# 文本编辑器 例子(richTextBox富文本)
    可以打开文本,并且不会出现乱码
    2015-04-20下载
    积分:1
  • Employee Info Starter Kit 实例源码下载
    微软官方实例,入门级实例
    2014-07-29下载
    积分:1
  • C# 套打Demo
    套打Demo 【核心代码】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace Print_Demo{ public partial class Form1 : Form { public PrintDocument printDt = new PrintDocument(); //打印文档对象 Font printFont; //打印使用的字体 public Form1() { InitializeComponent(); } void printDt_PrintPage(object sender, PrintPageEventArgs e) { float pointX = 10; float pointY = 10; e.Graphics.DrawString("打印内容", new Font("宋体", 16F), Brushes.Black, pointX 60, pointY); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 26,pointX 300,pointY 26); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 35); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 56, pointX 300, pointY 56); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 65); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 86, pointX 300, pointY 86); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 95); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 116, pointX 300, pointY 116); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 125); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 146, pointX 300, pointY 146); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 155); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 176, pointX 300, pointY 176); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 185); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 206, pointX 300, pointY 206); e.Graphics.DrawString("检测结果", printFont, Brushes.Black, pointX, pointY 233); e.Graphics.DrawString("通过", new Font("宋体",22F,FontStyle.Bold), Brushes.Black, pointX 90, pointY 225); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 265, pointX 300, pointY 265); e.Graphics.DrawString("单位名称", printFont, Brushes.Black, pointX, pointY 275); } private void Form1_Load(object sender, EventArgs e) { printDt.PrintPage = new PrintPageEventHandler(printDt_PrintPage); printFont = new Font("宋体", 12F); } private void btnPrint_Click(object sender, EventArgs e) { //PrintDialog printDlg = new PrintDialog(); //printDlg.Document = printDt; //printDlg.AllowPrintToFile = true; //printDlg.AllowCurrentPage = true; //printDlg.AllowSelection = true; //printDlg.ShowDialog(); //printDlg.ShowDialog(); printDt.Print(); } private void btnLook_Click(object sender, EventArgs e) { PrintPreviewDialog printPreview = new PrintPreviewDialog(); printPreview.PrintPreviewControl.Document = printDt; printPreview.ShowDialog(this); } }}
    2021-05-06下载
    积分:1
  • PAT | 蓝桥 | LeetCode学习路径 & 刷题经验.pdf(共35页)
    PAT | 蓝桥 | LeetCode学习路径 & 刷题经验.pdf(共35页)
    2020-04-12下载
    积分:1
  • <免安装版>sqlite 数据库操作 实例源码下载
    如果你的操作系统是 win64位系统,那么请按照以下提示操作: 首先在这里下载  最新版的 sqlite dll文件,引用到项目中 http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki 记住是这个版本:Precompiled Binaries for 64-bit Windows  以及对应上你的 .net framework环境即可  另外程序的版本修改成 x64, 右键项目>>生成>>目标平台选择 x64 即可 至此即可使用  据说:从 System.Data.SQLite, Version=1.0.94.0 这个版本以后 不需要引用SQLite.Interop.dll 这个了,包含到 system.data.sqlite.dll中了
    2015-04-12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载