split text before regex parsing