Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have return dynamic data into string. IT has come as "First rate $ 30.00"
"Second rate $ 130.00"
"Legacy $ 630.00"

Now i want how can i get only numeric data i.e. 30.00, 130.00, 630.00.

If anybody have an idea kindly share to me.
Posted
Updated 8-Dec-12 19:43pm
v2
Comments
Sergey Alexandrovich Kryukov 9-Dec-12 2:14am    
ASM? Why did you accept Solution 1 then? :-)
--SA

1 solution

I'm using only one string here,
C#
string str = "First rate $ 30.00";
str = str.Split('$')[1].ToString();

richTextBox1.Text = str;

Similarly, you can do this for all strings... :)
 
Share this answer
 
Comments
Mas11 9-Dec-12 2:01am    
Thanks a lot !!.
[no name] 9-Dec-12 2:05am    
Welcome.!! Cheers :)

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