fix navigate to out of range exception
Merge pull request #554 from vasily-kirichenko/fix-navigate-to-out-of-range-exn

fix navigate to out of range exception
Fix regex bug

Wrong parenthesis
Add one more test