| 
IDocument
Replace Method (Regex, String)
  | 
 Replaces all occurrences of a character pattern specified 
by a regular expression with newValue string.
 Namespace:
 Spire.Doc.Interface
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
int Replace(
	Regex pattern,
	string replace
)
 
Function Replace ( 
	pattern As Regex,
	replace As String
) As Integer
 
int Replace(
	Regex^ pattern, 
	String^ replace
)
 
abstract Replace : 
pattern : Regex * 
replace : string -> int 
 
 
 
Parameters
 
- 
pattern
 
- 
 Type:
 
System.Text.RegularExpressions
Regex
 
 
- 
replace
 
- 
 Type:
 
System
String
 
 
Return Value
 
 Type:
 
Int32
 
 
 See Also
See Also