FG
💻 Software

How can I delete U+200B (Zero-width space) using sed

Fresh5 days ago
Mar 15, 202626097 views
Confidence Score0%
0%

Problem

I have a very large file that has zero-width spaces scattered throughout. It takes too long to open and edit using so I'd like to delete all instances of the character using . The problem is, I can't figure out how to match the character! I've tried using , . Any ideas? I'm running CentOS 5 if that…

Error Output

vi

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I delete U+200B (Zero-width space) using sed

Low Risk

This seems to work for me: Demonstration: Edit: Based partially on Gilles' answer:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment