Actions
Feature #21552
openallow String.strip and similar to take a parameter similar to String.delete
Status:
Open
Assignee:
-
Target version:
-
Description
Regrading String.strip
(and lstrip
, rstrip
, and !
versions)
Some text data representations differentiate between what one might call vertical and horizontal white space, and the 'strip' methods currently strip both.
It would be helpful if they had an optional parameter similar to String.delete
with a one multi-character selector, so one could do:
t = str.strip " \t"
One can use a regex for this, but this much simpler.
No data to display
Actions
Like1