替换字符串方法问题 [英] replace string method issue

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

问题描述





i有字符串就像一个(a_Value,a_Varable)



i use replace方法取而代之所有但我不想替换a_Value或a_Variable ..



请帮我这个...........

hi

i have string like a(a_Value,a_Varable )

i use replace method it replace all a but i dont want to replace a_Value or a_Variable..

please help me on this...........

推荐答案

自昨天你提出同样的问题后答案没有改变:

我在String.Replace()方法中遇到问题 [ ^ ]



如果您不理解答案,请寻求帮助来自那些回答你的人。不要只用更少的信息再次发布相同的问题 - 这会产生反作用,并且粗鲁。
The answer has not changed since you asked the same question yesterday:
i have problem in String.Replace() method[^]

If you don't understand the answers you have been given, then ask for help from the people who answered you then. Don't just post the same question again with even less information - it's counter productive, and rude.






试试这个:

Hi,

Try this:
string s = "a(a_Value,a_Varable )";
s = s.Replace("a(", "whateverYouWant(");



希望这会有所帮助。


Hope this helps.


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

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