且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

替换字符串符号

更新时间:2022-10-22 11:39:45

Captain Obvious 说:使用这种方法: http:/ /msdn.microsoft.com/en-us/library/system.string.replace.aspx [ ^ ]。



注意其他有用的方法,尤其是 string.Split string.IndexOf

http://msdn.microsoft.com/en-us/library/system.string.aspx [ ^ ]。



-SA

Dear guys,


This is my string

<p><b>Property Location</b> <br />When you stay at Premier Inn Dubai Silicon Oasis in Dubai, you&apos;ll be in the business district and convenient to Dubai Silicon Oasis and Zayed University. This hotel"

How can i replace these symbols from the string and asighn to another string?


Any one knows

Captain Obvious says: use this method: http://msdn.microsoft.com/en-us/library/system.string.replace.aspx[^].

Pay attention for other useful methods, especially string.Split and string.IndexOf:
http://msdn.microsoft.com/en-us/library/system.string.aspx[^].

—SA