This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.FileHelpers.
Summary
Finds the first regex match in a file and returns a specific match group.
Syntax
public static Group FindRegexMatchGroupInFile(this ICakeContext context, FilePath file, string rxFindPattern, int groupIndex, RegexOptions rxOptions)
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
file |
FilePath |
The file. |
rxFindPattern |
string |
The regex pattern to search for. |
groupIndex |
int |
The specific match group. |
rxOptions |
RegexOptions |
The regex options. |
Return Value
Type |
Description |
Group |
The matches with their groups. |