替换字符串符号 [英] Replace string symbols

查看:72
本文介绍了替换字符串符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,





这是我的字符串



< p>< b>属性位置< / b> < br />当您入住迪拜迪拜硅绿洲普瑞米尔酒店时,您将在商业区,方便前往迪拜硅绿洲和扎耶德大学。这家酒店



我怎样才能从字符串替换这些符号和asighn到另一个字符串?





任何人都知道

解决方案

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


这篇关于替换字符串符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆