Replace.

Replace(string, Func<Match, Object>) Constructor

Summary

Replaces all occurrences of the search string in every input document with the string value of the objects returned by the delegate. The delegate will be called for each Match in the supplied regular expression.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Contents
Containing Type
Replace

Syntax

public Replace(string search, Func<Match, Object> contentFinder)

Parameters

Name Type Description
search string The string to search for (interpreted as a regular expression).
contentFinder Func<Match, Object> A delegate that returns the content to replace the match.

Return Value

Type Description
void
GitHub