C# Excel NamedRange.Find方法与C中的正则表达式模式匹配#

C# Excel NamedRange.Find方法与C中的正则表达式模式匹配#,c#,regex,excel,search,C#,Regex,Excel,Search,我需要搜索第一次出现与正则表达式模式匹配的字符串的单元格。MSDN文档提供了以下内容: // Find the first occurrence of "Seashell". Excel.Range Range1 = namedRange1.Find("Seashell", missing, missing, Excel.XlLookAt.xlWhole, Excel.XlSearchOrder.xlByColumns, Microsoft.Office.Interop.Exce

我需要搜索第一次出现与正则表达式模式匹配的字符串的单元格。MSDN文档提供了以下内容:

// Find the first occurrence of "Seashell".
Excel.Range Range1 = namedRange1.Find("Seashell", missing, missing,
    Excel.XlLookAt.xlWhole, Excel.XlSearchOrder.xlByColumns,
    Microsoft.Office.Interop.Excel.XlSearchDirection.xlNext,
    false, false, missing);
有没有办法用正则表达式模式匹配代码替换“Seashell”


谢谢。

您可以使用*作为通配符,但我还无法确认任何其他正则表达式是否与此问题类似:?看起来是一个很好的线索,谢谢。我找到了一个变通方法,至少就具体的工作簿而言是这样,因为我确定了一个无论模板如何都不会更改的列标题。