Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everbody.Please help me for question of String

I have one String.Eg: truon@gtm"abc "@fdfdm" longhg
I want replace " character that it between @ and " " character( it is close very to " " character)
Bellow:
input: truon@gtm"abc "@fdfdm" longhg
output: truon@gtm"abc "@fdfdm9 longhg

Thank you very much
Posted
Comments
ZurdoDev 27-Mar-13 10:08am    
So, where are you stuck? Can you define the rules more clearly?
[no name] 27-Mar-13 10:12am    
Okay so get the last index of " and replace it.
Sergey Alexandrovich Kryukov 27-Mar-13 10:14am    
Can you calculate how many functions are available in .NET FCL?
And what, are you going to ask a question on each one you need? Do you want to spend all your working time in asking questions, instead of just reading and going programming?
—SA

1 solution

You cannot replace anything in a string, because this type is immutable; all string functions returning string create a brand new string object. Including String.Replace.

All you need is this: http://msdn.microsoft.com/en-us/library/system.string.aspx[^].

And this is what your need much more: Microsoft Q209354.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900