in reply to substring within range

Surely, substr will do what you need, but you'll need to wrap it in a (while or other) loop to process the various ranges one after the other.

Je suis Charlie.