替换< br>与NL [英] replace <br> with NL
本文介绍了替换< br>与NL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该如何解决这个问题?
我以前知道这一点,但是找不到VB.net取而代之的。
类似
string.replace("< br>",NL)
谢谢,
Tom
解决方案
dim str as string =" hello< br> world"
dim newString as string = str.Replace("< br>",System.Environment.NewLine)
或者你可以使用VbCrLf ...... 。我更喜欢Environment.NewLine
Karl
-
我的ASP.Net教程
http://www.openmymind.net/
" tshad" < TS ********** @ ftsolutions.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP14.phx.gbl ...怎么做我去了吗?
我以前知道这个,但是找不到VB.net取而代之的。
像
这样的东西> string.replace("< br>",NL)
谢谢,
Tom
这是你在找什么?
MyString = MyString.Replace("< br>",vbcrlf)
-
我希望这会有所帮助,
Steve C. Orr,MCSD,MVP
http://SteveOrr.net
" tshad" < TS ********** @ ftsolutions.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP14.phx.gbl ...怎么做我去了吗?
我以前知道这个,但是找不到VB.net取而代之的。
像
这样的东西> string.replace("< br>",NL)
谢谢,
Tom
>
dim str as string =" hello< br> world"
dim newString as string = str.Replace("< br>",System.Environment .NewLine)
或者你可以使用VbCrLf ....我更喜欢Environment.NewLine
Karl
-
我的ASP.Net教程
http:// www.openmymind.net/
" tshad" < TS ********** @ ftsolutions.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP14.phx.gbl ...怎么做我去了吗?
我以前知道这个,但是找不到VB.net取而代之的。
像
这样的东西> string.replace("< br>",NL)
谢谢,
Tom
How do I go about this?
I used to know this, but can''t find VB.net replace that does this.
Something like
string.replace("<br>",NL)
Thanks,
Tom
解决方案
dim str as string = "hello<br>world"
dim newString as string = str.Replace("<br>", System.Environment.NewLine)
or you could use VbCrLf....I prefer Environment.NewLine
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"tshad" <ts**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...How do I go about this?
I used to know this, but can''t find VB.net replace that does this.
Something like
string.replace("<br>",NL)
Thanks,
Tom
Is this what you''re looking for?
MyString = MyString.Replace("<br>",vbcrlf)
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"tshad" <ts**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...How do I go about this?
I used to know this, but can''t find VB.net replace that does this.
Something like
string.replace("<br>",NL)
Thanks,
Tom
dim str as string = "hello<br>world"
dim newString as string = str.Replace("<br>", System.Environment.NewLine)
or you could use VbCrLf....I prefer Environment.NewLine
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"tshad" <ts**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...How do I go about this?
I used to know this, but can''t find VB.net replace that does this.
Something like
string.replace("<br>",NL)
Thanks,
Tom
这篇关于替换< br>与NL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文