3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test="AdGroup update failed: [AdGroupServiceError.DUPLICATE_ADGROUP_NAME @ operations[6].operand.name; trigger:'prince2 training west yorkshire', AdGroupServiceError.DUPLICATE_ADGROUP_NAME @ operations[8].operand.name; trigger:'prince ii training and exam']"; $result = array(); preg_match_all("/trigger:([^\,]*?)\,/im", $test, $result); var_dump($result);
Output for 4.3.0 - 7.1.0
array(2) { [0]=> array(1) { [0]=> string(42) "trigger:'prince2 training west yorkshire'," } [1]=> array(1) { [0]=> string(33) "'prince2 training west yorkshire'" } }