Skip replace if inside specific tag

skiddy

New Member
I have the following regex to detect text inside \[code\]<?php\[/code\] (including the tag)\[code\]'/<\?php(.*)\?>/isU'\[/code\]I also got function called compress. the function compress html content by replacing new lines, comments etc... I don't want the function to replace text inside the \[code\]<?php\[/code\] tag. how can I do it using the regex above?Thanks!
 
Back
Top