separate function

Separate a character column into multiple columns with a regular expression or numeric locations