Re: [racket-users] docs for string-trim

2016-11-05 Thread Eli Barzilay
On Wed, Nov 2, 2016 at 12:29 AM, Ben Greenman wrote: > The trick is that 'whitespace' isn't just #\space. It's any sequence > of whitespace characters, like "\r\r\r" or " \r\n\t" ...and this happens because the default `sep` is a regexp, not a plain string. --

Re: [racket-users] docs for string-trim

2016-11-01 Thread Ben Greenman
The trick is that 'whitespace' isn't just #\space. It's any sequence of whitespace characters, like "\r\r\r" or " \r\n\t" On Wed, Nov 2, 2016 at 12:12 AM, wrote: > Hi, > > when using the search function for the Racket-docs > with string-trim I found: > > - >

[racket-users] docs for string-trim

2016-11-01 Thread Meino . Cramer
Hi, when using the search function for the Racket-docs with string-trim I found: - Trims the input str by removing prefix and suffix sep, which defaults to whitespace. A string sep is matched literally (as opposed to being used as a regular expression). Use #:left? #f or