How to detect Unicode "UFFFC" character

I have a file and I can't paste it directly through the system clipboard, so I remove its style by filtering it and then getting a “UFFFC” character (Unicode Character 'OBJECT REPLACEMENT CHARACTER '), but I don't know how to detect this unicode character. Can you help me to solve it? The link below is a temporary solution I came up with, but it's too clumsy and I think there is a simpler way.

Screen Recording 2022-09-28 at 01_37_11

Filter Macro (v10.1.1)

Filter.kmmacros (1.7 KB)

Difficult to test without the same clipboard contents, but have you tried

1 Like

Thanks for your reply.

It works, but you need to change "contains" to "matches". But I still think the whole process is too tedious, I should learn json or javascript