SessionutilReplaceRegexInResponse Method |
Perform a regex-based string replacement on the response body. Adjusts the Content-Length header if needed.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public bool utilReplaceRegexInResponse(
string sSearchForRegEx,
string sReplaceWithExpression
)
Public Function utilReplaceRegexInResponse (
sSearchForRegEx As String,
sReplaceWithExpression As String
) As Boolean
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:
BooleanTRUE if replacements occured
See Also