XOR Media

Coding, Operations, Etc.

String Truncate Middle With Ellipsis

There are times when you need to middle truncate a string. In many cases it's for UX/human purposes, though in some situations it's the best way to generate unique string for a length-limited field. This is the case I ran in to recently in trying to automate ...

(more)
In code, tagged: python, coding, examples, and strings.