<?php $text = 'Abc *def* ghi *jkl*'; if (preg_match_all('~\*([^*]*)\*~', $text, $matches)) { print_r($matches[1]); }
You have javascript disabled. You will not be able to edit any code.