FileHelperAliases.

FindRegexMatchesInFile(ICakeContext, FilePath, string, RegexOptions) Method

Summary

Finds the regex matches in a text file.
Assembly
Cake.FileHelpers.dll
Namespace
Cake.FileHelpers
Containing Type
FileHelperAliases

Syntax

public static List<string> FindRegexMatchesInFile(this ICakeContext context, FilePath file, string rxFindPattern, RegexOptions rxOptions)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext Context.
file FilePath The text file.
rxFindPattern string The regex pattern to search for.
rxOptions RegexOptions The regex options.

Return Value

Type Description
List<string> The regex matches in file.