<?php $re = '/[$](.*?);$/ms'; $str = '$this->foo()\n->bar();\nassadds\n$this->foo() \n->bar();'; preg_match_all($re, $str, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.