/file/edit/regexreplace
Global regex search & replace for the content of a file.
Endpoint
POST /file/edit/regexreplace
Parameter
Header
Field | Value |
---|---|
accessToken | accessToken set in the Config |
Body
Field | Value | Type |
---|---|---|
file | File to edit | string |
regexReplace | Array with regex replace objects to apply {"regex":regexString,"replace":replaceString} | Array |
test (optional) | Only log the file action but don't execute it for testing purposes | true |
Example
{
"file":"C:\\test\\test.txt",
"regexReplace":[{
"find":"(dogs)",
"replace":"cats"
}
]
}
Status: 200