Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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...........
Posted
Comments
Jameel VM 25-Jun-13 3:13am    
you want only this 'a()' .right?
rahuls1 25-Jun-13 4:57am    
i want just a to be replaced..

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.
 
Share this answer
 
Hi,

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

Hope this helps.
 
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