Esc

Zero-width space

There is a special unicode character that does not display visually, but exists to affect text formatting and layout.

It can be written in a number of different ways:

​
​
<wbr>

If you want to use it in a document, there are tools that allow you to copy the character to your clipboard. You won’t see anything when you paste it in, but when moving the cursor you’ll notice it pausing at that point to skip over the invisible character.

I use this in a hacky way to prevent strings from matching a regex filter. For example, to circumvent my wikilinks matching I can add a zero-width space between two square brackets. Visually it is identical, but the extra character prevents regex matching.