\s

Hi,

where does "\s" come from?

It's supposed to be whitespace, but its NOT: "a\tb" .delete "\s" only
deletes spaces.

I suggest to also implement str.delete regex - wouldn't that be useful?

bye Andrew

Hi,

"\s" stands for Space (" "). It's taken from Emacs regular expression and character class.
Instead of str.delete(re), you can use str.gsub(re, '').

              matz.

ยทยทยท

In message "Re: \s" on Wed, 27 May 2020 11:32:22 +0200, Die Optimisten <inform@die-optimisten.net> writes:

Hi,

where does "\s" come from?

It's supposed to be whitespace, but its NOT: "a\tb" .delete "\s" only
deletes spaces.

I suggest to also implement str.delete regex - wouldn't that be useful?

bye Andrew