$person = new Person;
$person->speak();
I’m trying to create a snippet for the above piece of code, when I type $person-
and hit tab I want it to expand to $person->
So I need some sort of regular expression which will match anything before the -
Is that possible?