Test, validate and match regular expressions
Matches JavaScript assignment statements like `vm.Chapters = [...];` in multiline text, capturing the JSON-style array literal (composed of word characters, digits, whitespace, colons, quotes, commas, curly braces, and hyphens) in capture group 1. With global and multiline flags, it finds all such assignments line-by-line across a file. Typically used to extract inline JSON arrays embedded in script tags or view model code when parsing JavaScript from .NET applications.