Skip to content

Commit e1a7853

Browse files
author
Sébastien Geiser
committed
Add cell adress in excel text source
1 parent 9804ca0 commit e1a7853

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

RegexDialog/RegExToolDialog.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ List<RegexResult> GetMatchesFor(string text, string fileName = "", int selection
650650
return excelSheetResult;
651651
});
652652

653-
MatchesResultLabel.Content = $"{i} matches [Index,Length] + {countAllCaptures - i} empties matches";
653+
MatchesResultLabel.Content = $"{i} matches [Index,Length] - Cell + {countAllCaptures - i} empties matches";
654654
}
655655
}
656656
else if (Config.Instance.TextSourceOn == RegexTextSource.CSharpScript)

RegexDialog/Utils/Config.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ private void Init()
102102
Name = "Comment author",
103103
GetValue = cell => cell.HasComment ? cell.GetComment().Author : ""
104104
},
105+
new ExcelCellTextSource()
106+
{
107+
Name = "Cell address",
108+
GetValue = cell => cell.Address.ToString()
109+
},
105110
};
106111

107112
excelCellTextSources.ForEach(s1 =>

0 commit comments

Comments
 (0)