Remove trailing commas of PHP array and functions
This expression looks for sequences of PHP arrays, either closed with ] or ) with unnecessary trailing commas and captures the content divided into three parts, except by the comma itself. You can use it to search an replace in editors like VSCode like this:
Search:
([\])]),(\s\n\s*)([\])])
Replac...
Submitted by Mateus Machado Luna - 2 years ago