<?php$str="The ‘big-yellow’ house-is near the lake";$keywords = preg_split("/-(?![a-z]+’ )/", $str);print_r($keywords);?>
Standard input is empty
Array ( [0] => The ‘big-yellow’ house [1] => is near the lake )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!