先替换空格,再调用UBB替换。
解决方案 »
- 字体图片效果,
- 上传图片的问题.
- 求ASP.NET实例的书一本
- ImageButton画图的问题?
- 请问如何在dataview中实现根据行值,不同行之间显示不同的颜色?
- asp.net如何实现导航
- 两个用户控件放到同一页面中,互相怎么调用对方的内部控件的值呢?
- 关于往Access数据库操作日文的问题!急~~帮帮小妹
- 在后台aspx.CS 文件中,table 中一个字段名为Rc_Photo,是个人照片的url,前台aspx中我想显示这个图片,有点难度!!??
- 关于访问ACCESS数据库的问题,能够打开,就是不是写入数据!
- asp.net是跨平台的吗?
- 把系统格了,重新安装,还是不行,我怎么才能把vs.net安装到我的机子上了
kkk这样的情况的?
Regex my=new Regex(@"(\[URL=)(.[^\[]*)(\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"<A HREF=""$2"" TARGET=_blank>");
my=new Regex(@"(\[\/URL\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"</A>");
my=new Regex(@"(\[B\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"<b>");
my=new Regex(@"(\[U\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"<u>");
my=new Regex(@"(\[I\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"<i>");
my=new Regex(@"(\[\/B\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"</b>");
my=new Regex(@"(\[\/U\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"</u>");
my=new Regex(@"(\[\/I\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"</i>");
my=new Regex(@"(\[COLOR=)(.[^\[]*)(\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"<font color=""$2"">");
my=new Regex(@"(\[\/COLOR\])",RegexOptions.IgnoreCase);
str=my.Replace(str,@"</font>");