Tag Archives: only digits

Remove non-digits or non-letters from a string in C#

Sometimes you might want to extract only the digits, letters, or some other group of characters from a string. You could loop through the string examining each character individually. Fortunately there’s a much easier way to do this. The regular … Continue reading

Posted in parsing, regular expressions, strings | Tagged , , , , , , , , , , , , , , , | Leave a comment