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.
- Namespace
- Statiq
.Core - Containing Type
- ReplaceInContent
Syntax
public ReplaceInContent(string search, Func<Match, IDocument, string> contentFinder)
Parameters
Name | Type | Description |
---|---|---|
search | string | The string to search for (interpreted as a regular expression). |
contentFinder | Func |
A delegate that returns the content to replace the match. |