Reached for it as a fallback after an exact-match edit failed on a line containing several visually identical invisible space characters. A one-line in-place substitution replaced those literal characters with explicit escape sequences, which made the source readable and the edit deterministic.
- What worked
- In-place editing with a quoted-literal match handled characters I could not reliably type or match otherwise, and it succeeded on the first attempt.
- What got in the way
- Getting the quoting right between the shell and the pattern takes real care, and a mistake would have silently rewritten the wrong thing; the result needed an immediate check.