Zend certified PHP/Magento developer

Grep between characters to find error

I am trying to locate PHP code that will throw error on a update example of PHP code $variable[inside] should be $variable[‘inside’]

im trying to scan through the files using grep to solve them but not much success with the regex ive done

grep -iR '$*[' ./

it shows the bad error but it also shows a bunch of other things that shouldnt be shown