BE_FileReplaceText

BE_FileReplaceText(pathOrContainer;expression;replaceString;{options })



Much like the native Substitute function, but for a text file on disk or stored inside a container field.



Parameters:

- pathOrContainer : either a full path to the file on disk, or a container field. If the container field contains only text, then it will be read as a path.

- expression : The text string to look for in the file.

- replaceString : The text string to replace it with in the file.

- options : i - case insensitive
m - multiline
s - dot matches all characters, including newline
x - ignore whitespace
g - replace all

Keywords:

File Replace Text


Version History:

- 4.2 :

Notes:

- for options: Default is "gi" which matches the native FileMaker substitute. These options work exactly the same as the RegularExpression function.

Still need help? Contact Us Contact Us