Perhaps you want to take a look at the
split function (to split the data) and the
qr operator (to create regexes). If that doesn't help, perhaps you write a short example of how you are trying to split the data, what you want to split it into, and what sort of regular expressions you want, and how you want to use them?