Various regex snippets: divide a string into snips of a certain length;