Replace.

Replace(string, Func<Match, IDocument, 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, IDocument, Object> contentFinder)

Parameters

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

Return Value

Type Description
void
GitHub