So, I request that in the "trim" section, you add words similar to this:
To trim arbitrary whitespace from the beginning and end of a string, you can do this:
Code Select
(set 'str " t Hello World!t t")
(replace "^s+|s+$" str "")
=> "Hello World!"
I suggest you add this to the documentation, because as a new user, when I want to "trim" the whitespace from the edges of my strings, the "trim" function is the first place I look. And I imagine this isn't an uncommon case. I actually haven't ever needed to use the trim function in its current form.
Or if you added a "regex" version of trim, with a trailing regex options parameter, then I could do
Code Select
(trim " t foo t " "s" 0) => "foo"