string s= oElement2.InnerText;
string nonNumericValue = string.Concat(s.Where(a => !Char.IsDigit(a)));
double dblPrice = Convert.ToDouble(s);
I am parsing a webpage and the result "1,500\r\nIn Stock" crashes my application. I am trying to exclude all the nonnumeric characters. Is this Lambda Expression incorrect ? thank you in Advance.
Nishant MittalPosted Nov 19, 2015, 11:25 PM
EmphaticPosted Nov 19, 2015, 12:09 PM
Nishant MittalPosted Nov 19, 2015, 11:44 AM