Logo

Programming-Idioms

History of Idiom 219 > diff from v2 to v3

Edit summary for version 3 by programming-idioms.org:
Linked to idiom #63 [Replace fragment of a string]

Version 2

2020-02-28, 09:04:31

Version 3

2020-02-28, 09:26:39

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