Skip to content

Instantly share code, notes, and snippets.

@FredLeg
Last active August 29, 2015 14:25
Show Gist options
  • Save FredLeg/545080072c7a3776ee80 to your computer and use it in GitHub Desktop.
Save FredLeg/545080072c7a3776ee80 to your computer and use it in GitHub Desktop.
Remplacement: $movie['actors'] ---> $movie->actors
$movie['actors'] ---> $movie->actors
Fine what: \$(?!_)([a-zA-Z0-9_]+)\[['"]([a-zA-Z0-9_]+)['"]\]
Replace with: \$$1->$2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment