$string = 'Foo (Bar) (Baz)'
preg_match('#\((.*?)\)#', $string, $match);
In the above PHP, $match is returned as
array ( 0 => '(Bar)', 1 => 'Bar', )
Is it possible to alter the regex so it returns:
array ( 0 => '(Baz)', 1 => 'Baz', )
.i.e. the final word in parenthesis.
Thanks.