Hello,

I have a text document that contain's a few special tags.

How would I go about removing all characters between a open tag and a close tag (including the tags).

tags:
open [%ab]
close [%ba]

str_replace("[%ab] text between [%ba]", "" , $string);

Thanks for the help

    Never mind I got it.

    preg_replace("'[%ab].*?[%ba] 'si", "", string);

      Write a Reply...