I'm using the "Transform & Replace Selection with Javascript" action, but I can't seem to get the replaceAll function working. This is what I have:
async (clipboardContentString) => {
return clipboardContentString.replaceAll("[^\\p{L}\\p{M}\\p{N}\\p{P}\\p{Z}\\p{Cf}\\p{Cs}\\s]", "");
}
And here is some sample input:
fall-
forwa:innocent:rd öäü how to do in java . com A função, Ãugent
Test execute just returns the same string, but I want to remove emoji and characters such as ã.
Any ideas?