Closed atomGit closed 1 year ago
.s("[^[:print:]*","")
deletes any character except [
, :
, p
, r
, i
, n
, t
since Regexp in JavaScript does not support POSIX character class like :print:
{{text.s("[\\u200B]","")}}
can be used instead to remove zero-width characters.
thanks!
after some fooling around i came up with this which i think will accomplish what i want...
.s("[\\u200B-\\u200D\\uFEFF]","")
i want to remove zero-width characters, however this is not working
this string contains zero-width chars:
thisthat
when i copy it, this is the result:titt