@wilbert
Sorry but your updated code is wrong, you must not increment the separator counter if there is no match.
The line 'i + 1' must be inside the 'If...Else' block.
[PB4] Split() and Join() commands
Re: [PB4] Split() and Join() commands
You're rightGJ-68 wrote:Sorry but your updated code is wrong, you must not increment the separator counter if there is no match.
The line 'i + 1' must be inside the 'If...Else' block.

Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)