how to parse a string in C#?
Posted on 2011-03-10
I need to create an entry box for customer to enter door sizes. I'm not sure if there is a better way but I am thinking of having a text box allowing customer enter something like: 12 1/2 x 74 7/8 (inch) which is width x length
1) How to parse this since I need to use this in a formula. I need to extract 12, then 1/2 then 74 and finally 7/8.
2) How can I avoid getting garbage from this text box on page?