I have a textarea, and when I write, for example, "want", I want to replace it with "two".
You can use the word boundary
\w, which is
[a-zA-Z0-9_] and a non-word character (everything except that).
'is not a
©2020 All rights reserved.