I have a string containg alphabetic characters, for example:
- 254.69 meters
- 26.56 cm
- 23.36 inches
- 100.85 ft
I want to remove all the alphabetic characters (units) from the above mentioned strings so that I can call the double.Parse() method.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should work: