I don't thnk the regexp can do all the work in the regard your thinking- but why not use a replacing regular expression to replace all the matches with commas "," and then enclose it the resulting string in paranthesis.