FileHelperAliases.

FindRegexMatchesGroupsInFile(ICakeContext, FilePath, string, RegexOptions) Method

Summary

Finds regex matches in a file and returns all match groups.
Assembly
Cake.FileHelpers.dll
Namespace
Cake.FileHelpers
Containing Type
FileHelperAliases

Syntax

public static List<List<Group>> FindRegexMatchesGroupsInFile(this ICakeContext context, FilePath file, string rxFindPattern, 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.
rxOptions RegexOptions The regex options.

Return Value

Type Description
List<List<Group>> The matches with their groups.