Throw exception if getIndex regex fails to match
Merge pull request #35 from wmde/catchNoMatch

Throw exception if getIndex regex fails to match