Last active
August 29, 2015 14:08
-
-
Save InvisibleKind/fef8afb4e55fe557f392 to your computer and use it in GitHub Desktop.
Regexp for replacing array() with [] in #YOUR_IDE_NAME#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
search: array\(([^\(\)]++)\) | |
replace with: [$1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: this will not replace all the nested arrays, but only the most nested.
E.g array(1, 2, 3, array(4, 5)) will match only array(4, 5)
So, you need to run replaces untill everything is replaced