Skip to content

Instantly share code, notes, and snippets.

@theking2
Created March 25, 2023 09:02
Show Gist options
  • Save theking2/4b96622f826cb080df7c595f9f46fc72 to your computer and use it in GitHub Desktop.
Save theking2/4b96622f826cb080df7c595f9f46fc72 to your computer and use it in GitHub Desktop.
replace array() wih []
[{
"command": "array.replace",
"args": {
"info": "replace array() with []",
"find": "([\s\r\n])array\(([\s\r\n]*[^()\s](?:[^()]*[^()\s])?[\s\r\n]*)\)",
"replace": "$1[$2]",
"all": true,
"reg": true,
"flag": "gm"
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment