Searching list C# by containing letters
.net, c#
Solution
Well, instead of a regex you can use LINQ to check for specific characters in the respective positions. But I'd definitely prefer a regular expression.
var result = yourList
.Where(x => x[0] == "a")
.Where(x => x[3] == "b")
.Where(x => x[5] == "c")
.Where(x => x[9] == "d")
.ToList();
Problem
I have a `List<string>` with some words. I want to get all of elements, witch contains letters in this schema: `a00b0c000d` - `0` is random char, `a,b,c,d` - are constantly chars in string. How can I do this? Can I do this only with Regex? There isn't any other solution?