FileHelperAliases.

ReplaceRegexInFiles(ICakeContext, string, string, string, RegexOptions) Method

Summary

Replaces the regex pattern in files matched by the given globber pattern.
Assembly
Cake.FileHelpers.dll
Namespace
Cake.FileHelpers
Containing Type
FileHelperAliases

Syntax

public static FilePath[] ReplaceRegexInFiles(this ICakeContext context, string globberPattern, string rxFindPattern, string replaceText, RegexOptions rxOptions)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
globberPattern string The globber pattern to match files to replace text in.
rxFindPattern string The regular expression to find.
replaceText string The replacement text.
rxOptions RegexOptions The regular expression options to use.

Return Value

Type Description
FilePath[] The files that had text replaced in them.