in reply to split versus =~

Rather than making people guess haphazardly it would be helpful to provide sample data that shows what your problem is and exactly what you mean by "not work(ing) exactly the same".

The cake is a lie.
The cake is a lie.
The cake is a lie.