// Change x to the text you want to replace
// Change y to the new text
text.sourceText.replace(/x/g, "y");
Useful for dynamically replacing words, letters, or symbols in a text layer - great for video versioning and automated text updates where manual edits aren’t possible.