Closed quasilyte closed 3 years ago
$ cat test.php <?php var_dump([]); var_dump([1]); var_dump([1, 2]); var_dump([1,]); var_dump([1,2,]); $ phpgrep ./test.php '[${"*"}, $_]' ./test/php:4: [1] found 1 matches
Expected 2 matches.
It looks like we need backtracking here as well.
Expected 2 matches.