/file/edit/regexreplace

Global regex search & replace for the content of a file.

Endpoint

POST /file/edit/regexreplace

Parameter

FieldValue
accessTokenaccessToken set in the Config

Body

FieldValueType
fileFile to editstring
regexReplaceArray 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 purposestrue

Example

{
"file":"C:\\test\\test.txt",
"regexReplace":[{
        "find":"(dogs)",
        "replace":"cats"
        }
    ]
}
Status: 200