Hi If you just want to match.... (use 1 of these) <? /* if match found execute if() */ if ( preg_match ( '!(<\!-- Instance(Begin|End)Editable( name="MainBody")? -->)!s', $str ) ) { echo 'match found'; } /* if match not found execute if() */ if ( ! preg_match ( '!(<\!-- Instance(Begin|End)Editable( name="MainBody")? -->)!s', $str ) ) { echo 'match not found'; } ?> PHP: If you want the data beween the 2 tags then use str_ type functions.... example... <? $str = 'mmmmmmmmmmmmmmmmmmmmmm <!-- InstanceBeginEditable name="MainBody" --> ,,,,,,,,,,nnnnnnnnnnn nnnnnnnnnn jhhhhh54 766666 <!-- InstanceEndEditable --> 666666 66666666346'; $start = '<!-- InstanceBeginEditable name="MainBody" -->'; $stops = '<!-- InstanceEndEditable -->'; echo substr ( $str, ( $pos = ( strpos ( $str, $start ) + strlen ( $start ) ) ), ( strpos ( $str, $stops, $pos ) - $pos ) ); ?> PHP: jb