| ReplaceTextConverterConvert(String, String, String, RegexOptions, Boolean) Method |
Converts the specified value by replacing text using a regular expression.
Namespace: TomsToolbox.Wpf.ConvertersAssembly: 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
)
Public Shared Function Convert (
value As String,
pattern As String,
replacement As String,
options As RegexOptions,
replaceAll As Boolean
) As Object
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
ObjectThe converted value.
See Also