use re pattern for splitting