Test, validate and match regular expressions
This regex matches AngularJS scope variable assignments to empty array literals, e.g., "$scope.items = [". It is useful for quickly locating where scope properties are initialized as arrays in custom controllers during code review or refactoring. The pattern requires the equals sign and opening bracket with optional spaces.