| 
Document
Replace Method (Regex, String)
  | 
 Replaces all entries of matchString regular expression with newValue string.
 Namespace:
 Spire.Doc
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
public int Replace(
	Regex pattern,
	string replace
)
 
Public Function Replace ( 
	pattern As Regex,
	replace As String
) As Integer
 
public:
virtual int Replace(
	Regex^ pattern, 
	String^ replace
) sealed
 
abstract Replace : 
pattern : Regex * 
replace : string -> int 
override Replace : 
pattern : Regex * 
replace : string -> int 
 
 
 
Parameters
 
- 
pattern
 
- 
 Type:
 
System.Text.RegularExpressions
Regex
 
 
- 
replace
 
- 
 Type:
 
System
String
 
 
Return Value
 
 Type:
 
Int32
 
Implements
 
IDocument
Replace(Regex, String)
 
 
 See Also
See Also