I need to extract words that contain digits.
ex:-
Input - 3909B Witmer Road. Niagara Falls. NY 14305
Output - 3909B and 14305
You mean you want to extract number-ey words:
var matches = Regex.Matches(input, @"\d\w*"); foreach (Match match in matches) { var numWord = match.Value; // 3909B, etc. }