I am trying to merge two .net regular expressions into one. The following expressions are validating excel like cell names.
Regex.IsMatch(name, @"^[A-Za-z]{1}[\w\.]*$") &&
!Regex.IsMatch(name, @"^[A-Za-z]{1,2}\d+$");
The first part ensures the cell name starts with a character and can be any length. The second ensures the cell name is not a cell reference; for example, A1, AA1, AA11, etc.