Strip zero-width spaces, a byte order mark and other invisible format characters. Spaces you can see stay.
Copied text sometimes contains a zero-width space, a byte order mark, or a bidirectional mark. The line looks normal and still fails a comparison. This page removes those format characters. It does not delete ordinary spaces, tabs or line breaks. Spaces are remove space. Extra gaps are collapse whitespace.
[U+200B], instead of deleting it.hello, a zero-width space, world, and a byte order mark. The default result is a count of 2 and helloworld.The default set is the soft hyphen, combining grapheme joiner, Arabic letter mark, Mongolian vowel separator, zero-width space, zero-width non-joiner, zero-width joiner, left-to-right and right-to-left marks, bidirectional embeddings and overrides, word joiner, invisible operators, isolates, the byte order mark, and interlinear annotation characters. All format characters also includes other format code points, including variation selectors, so an emoji that relied on one can change shape. Letters, visible spaces, newlines and ordinary punctuation stay. The count is the number of matches, including when you only mark them.
Those are ordinary spaces. This page only removes invisible format characters. Use remove space if the visible gaps should go too.
All format characters can remove a variation selector. Leave that option off if you only want zero-width marks and the byte order mark.