Skip to Content
File ServiceEdit File RegexReplace

Edit File RegexReplace

POST /file/edit/regexreplace

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

Header

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
{ "file":"C:\\test\\test.txt", "regexReplace":[{ "find":"(dogs)", "replace":"cats" } ] }
Last updated on