using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
var pattern = @"(?<Alfas>[a-zA-Z]+)|(?<Digits>[\d,.]+)|(?<Others>[^a-zA-Z\d]+)";
foreach (var testInput in inputs)
var matches = Regex.Matches(testInput, pattern).Cast<Match>();
var alfas = matches.Where(x => !string.IsNullOrEmpty(x.Groups["Alfas"].Value))
var digits = matches.Where(x => !string.IsNullOrEmpty(x.Groups["Digits"].Value))
var others = matches.Where(x => !string.IsNullOrEmpty(x.Groups["Others"].Value))