Add strip functions for all whitespace

Basically, the equivalent of strings.Trim "\f\n\r\t\v ", but for starts and ends of strings only:

  • stripLeft STRING, strings.StripLeft STRING
  • stripRight STRING, strings.StripRight STRING
  • strip STRING, strings.Strip STRING

Note that chomp only works on ends, and only for \n\r.

Havent tested it, but according to the docs strings.Trim handles begin and end only.

Maybe I got your request wrong?
Do you want an alias for whitespace only?

Ah, you’re right, thanks.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.