The string I have used to looking for is below
<!-- PART -->
And it was easy, I just do
preg_replace('/<!-- PART -->/', $value);
But now I realise I need a new attribute to be added in the string (ID)
<!-- PART ID="zoneA" -->
So is it a way I can search for star with <!-- PART and end with --> and also if its possible to read the ID attribute value as well.