Click or drag to resize
BaseExtensionsReplace Method
Replaces a re

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 12.0.0
Syntax
C#
public static string Replace(
	this Regex regEx,
	string input,
	string replacement,
	bool allowSubstitutions
)

Parameters

regEx
Type: System.Text.RegularExpressionsRegex
Regular expression
input
Type: SystemString
Input text to replace
replacement
Type: SystemString
Replacement string
allowSubstitutions
Type: SystemBoolean
If set to false, substitutions are not allowed within the replacement string

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Regex. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also