How can i find a php objects property using regex in javascript?
For example, heres some php.
$obj = new stdClass();
$obj->name = '';
With the regex, i wish to get name.
I imagine the regex would look for a /\$\w+/ variable followed by ->, or maybe only ->?
The purpose for the regex is to extend some syntax highlighting.