-
Script Expression, how to add character
Hi all.
I am writing a script to add a regular expression to a text layer, but when the script is running, the character – \ disappears into the expression.
textProp.expression = ‘text.sourceText.replace(/\D+/g, “”)’;
In AE I get – text.sourceText.replace(/D+/g, “”)
How to fix it?