using System.Collections.Generic;
using System.Text.RegularExpressions;
List<string> inputs = new()
string pattern = "[0-9]+[a-zA-Z]*[0-9]+";
Regex regex = new Regex(pattern);
foreach (var input in inputs)
bool isMatch = regex.IsMatch(input);
$"'{input}' {(isMatch ? "did" : "did not")} " +