Skip to content

Instantly share code, notes, and snippets.

@derekr
Created February 12, 2009 19:43
Show Gist options
  • Save derekr/62832 to your computer and use it in GitHub Desktop.
Save derekr/62832 to your computer and use it in GitHub Desktop.
((?x)((\$+)this))((->)([a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*?))*\b
// want to match $this->var1->var2
// matches broken down ($this)(->(var1))(->(var2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment