I have a database table with customer account numbers. Within the same table are test accounts that don\'t match the production formatting: say, \'A1111\' is production but
I changed the query to use the following in place of the Regex.IsMatch:
where SqlMethods.Like(cust.Acct, ProductionMask)
where ProductionMask = "[bBgG][0-9][0-9][0-9][0-9]"
the equivalent RegEx is: ^[B,G]\d{4}$
If anyone sees that the 2 masks should not produce the same results, please let me know...