Click or drag to resize

ReplaceLayoutRendererWrapperReplaceNamedGroup Method

Note: This API is now obsolete.

A match evaluator for Regular Expression based replacing

Namespace:  NLog.LayoutRenderers.Wrappers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
[ObsoleteAttribute("This method should not be used. Marked obsolete on NLog 4.7")]
public static string ReplaceNamedGroup(
	string input,
	string groupName,
	string replacement,
	Match match
)

Parameters

input
Type: SystemString
Input string.
groupName
Type: SystemString
Group name in the regex.
replacement
Type: SystemString
Replace value.
match
Type: System.Text.RegularExpressionsMatch
Match from regex.

Return Value

Type: String
Groups replaced with replacement.
See Also