Author: radha_chirthanuru | Posted on: 1/28/2010 12:00:44 AM | Views : 237

Hi All,


i am developing an application using ASP.NET with C#. and SQL SERVER 2005.


in my application i have  number of strings like


1.   120 count
2.    60/2.75 oz pkg (2 cookies/pkg)
3.   100/.9 oz.
4.    3.05 oz. patty 105 servings per case
5.    19# average(Catch Weight Item)
6.     2/ 8-9 lb. average weight  per case
7.  10#
8. 160 nuggets = 32 servings per case
9. 320/ 1 oz portion (20# Case)
10. 213/2.25 oz. servings (6/5 lb. bags)
etc.


from the above  strings i have to get only numbers like
from 1 i have to get  120
from 2 ---------  60/2.75
from 3 ---------- 100/.9
from4 ---------- 3.05
from5 ---------- 19
from 6 --------2/8.9  etc.


how to get the numbers from a string?

Go to the complete details ...