lastIndex is reset on an unsuccessful search.
Bugfix: changed to an increment.
Better test().
Better split().
Better replace() -- no Buffer support yet.