Overview
| Artifact ID: | 5414c0b2e5be6865ca2982a62b3ee35a0bbecb29 |
|---|---|
| Ticket: | 3563981fffffffffffffffffffffffffffffffff
string trim |
| User & Date: | dkf on 2012-09-03 00:54:26 |
Changes
- icomment:
[string trim] (and its trimleft/trimright variants) treats its second (non-operation) argument, if present, as containing a _set_ of characters to remove, not a substring to remove. (If absent, the set is the whitespace characters.) It has always worked this way (for at least 15 years) and it has always been documented to work this way. I suggest [string map] or [string replace] or [string range] or [regsub] or [regexp]; all can do much more relevant things than [string trim] for the desired transformation.
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "18. Commands M-Z"
- username: "dkf"