Click or drag to resize

ReplaceTextConverterConvert(String, String, String, RegexOptions, Boolean) Method

Converts the specified value by replacing text using a regular expression.

Namespace: TomsToolbox.Wpf.Converters
Assembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static Object? Convert(
	string? value,
	string? pattern,
	string? replacement,
	RegexOptions options,
	bool replaceAll
)

Parameters

value  String
The value to convert.
pattern  String
The regular expression to find.
replacement  String
The replacing text.
options  RegexOptions
The options for the regular expression.
replaceAll  Boolean
if set to true all occurrences will be replaces; otherwise only the first.

Return Value

Object
The converted value.
See Also