Fix bad index with regex