Click or drag to resize
SessionutilReplaceRegexInResponse Method
Perform a regex-based string replacement on the response body. Adjusts the Content-Length header if needed.

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
public bool utilReplaceRegexInResponse(
	string sSearchForRegEx,
	string sReplaceWithExpression
)

Parameters

sSearchForRegEx
Type: SystemString
The regular expression used to search the body. Specify RegEx Options via leading Inline Flags, e.g. (?im) for case-Insensitive Multi-line.
sReplaceWithExpression
Type: SystemString
The text or expression used to replace

Return Value

Type: Boolean
TRUE if replacements occured
See Also