lastIndex test
Merge branch 'snagaoka_master'
lastIndex works
Merge pull request #3 from jgerardsimcock/master

lastIndex works, compact refactored