You can use a regular expression to solve this problem.
See
XQuery and XPath Regular Expressions[
^]
Specifically look into
fn:tokenize(subject, pattern, flags)
The regex in this case could be
:(?<data>[a-z]+,[a-z]+)
Note: This regex will only work under the specific circumstances you have given in your question.