Replace split() with a regex