in reply to regex question

Split and join should be the good solution.