Simplified the regex splitting.