Edit File RegexReplace
POST /file/edit/regexreplace
Global regex search & replace for the content of a file.
Header
| Field | Value | 
|---|---|
| accessToken | accessTokenset 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"
        }
    ]
}Last updated on