added split regex and more options