I have two tags:
<!--// Remove Begin //--and <!--// Remove End //-->
I want to use regi_replace() to remove everything between these tags.
The thing is, these tags can be repeated throughout the code.
<!--// Remove Begin //-->(.+)<!--// Remove End //--works, but only
if the tags exists once. Otherwise, it parses out everything between
the first <!--// Remove Begin //--and the last <!--// Remove End //--
How could i modify this so that it will...
convert: aaa<!--// Remove Begin //-->bbb <!--// Remove End //--
into: aaaccc
??
<!--// Remove Begin //--and <!--// Remove End //-->
I want to use regi_replace() to remove everything between these tags.
The thing is, these tags can be repeated throughout the code.
<!--// Remove Begin //-->(.+)<!--// Remove End //--works, but only
if the tags exists once. Otherwise, it parses out everything between
the first <!--// Remove Begin //--and the last <!--// Remove End //--
>.
convert: aaa<!--// Remove Begin //-->bbb <!--// Remove End //--
>ccc<!--// Remove Begin //-->ddd<!--// Remove End //-->
??
Comment