I have a model with a property string that can be the format "00000044" so assuming I'm querying a List of
public class Foo
{
private string MemberNo { get; set; }
}
populated from Entity Framework,
and our set includes the following:
"00000044" include this
"44000000" include this
"20440000" exclude this
how to write a query that will exclude anything with non-zero number to the left of our search criteria "44"
Is it possible to combine Regex with linq or is there a smarter way?
Ta