See Returning More than One value from a function for an example of using the PARSE instruction to split a string into substrings using a separator which is part of the string.