Answer the question
In order to leave comments, you need to log in
How to extract letters from a string?
I have a sample string: string str = "0.005 кв.м";
I need to get "sq.m" from it, but I don't understand how to do it in C#. There are no problems with the numbers, they can be obtained from the sample with such a template:
string pattern = @"\b((\d+\,\d+)|(\d+\.\d+)|(\d+))";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question