accounting for array indices in brack notation regular expression
Merge pull request #1471 from cbayram/2.x

accounting for array indices in brack notation regular expression in 2.x