Logo

Programming-Idioms

History of Idiom 219 > diff from v36 to v37

Edit summary for version 37 by programming-idioms.org:
Linked to idiom #110 [Check if string is blank]

Version 36

2021-12-23, 09:00:54

Version 37

2021-12-23, 09:01:13

Idiom #219 Replace multiple spaces with single space

Create string t from the value of string s with each sequence of spaces replaced by a single space.

Explain if only the space characters will be replaced, or the other whitespaces as well: tabs, newlines.

Idiom #219 Replace multiple spaces with single space

Create string t from the value of string s with each sequence of spaces replaced by a single space.

Explain if only the space characters will be replaced, or the other whitespaces as well: tabs, newlines.

Extra Keywords
collapse repeated
Extra Keywords
collapse repeated