View all expressions
Transformation

Replace Text Expression

This expression replaces specific characters within a text layer, automating text modifications without manual intervention.

Contributed by:


// Change x to the text you want to replace
// Change y to the new text
text.sourceText.replace(/x/g, "y");

Replace Text Expression

Practical use case

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.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image