| ReplaceTextConverterConvert Method (String, String, String, RegexOptions, Boolean) |
Converts the specified value by replacing text using a regular expression.
Namespace:
TomsToolbox.Wpf.Converters
Assembly:
TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
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
- Type: SystemString
The value to convert. - pattern
- Type: SystemString
The regular expression to find. - replacement
- Type: SystemString
The replacing text. - options
- Type: System.Text.RegularExpressionsRegexOptions
The options for the regular expression. - replaceAll
- Type: SystemBoolean
if set to true all occurrences will be replaces; otherwise only the first.
Return Value
Type:
ObjectThe converted value.
See Also