Update mygrep.py

Correct matching index because of changes in RegExp (now (a,b) means text[a:b] instead of text[a:b+1]).