Refactors regex code. Breaks out RegExp#split into a C implementation.