Editable Area
Posted: Fri Sep 22, 2006 6:15 am
I want to be able to use preg_split to yank out the editable bit of a variable for a simple cms
is not working at all!
What regex would work please?
Code: Select all
$test="blah blah rhubarb<!--BEGIN EDITABLE--!>Editable bit<!--END EDITABLE--!>blah blah rhubarb";
$editable=preg_split("<!--BEGIN EDITABLE--!>[A-za-z0-9]+<!--END EDITABLE--!>",$test);
print_r($editable);What regex would work please?