I've got the following regex
<\?php\n//{{([^*]|[\r\n])*\?>
To match the following
<?php
//{{
...
?>
The problem is, once the regex matches this, it'll match the following
开发者_如何学Python<?php
...
?>
So basically, once it matches the //{{ it'll match any php tag after.
Cheers!
I don't know if I understood your regex correctly, but you can try a non-greedy solution:
<\?php\n//{{([^*]|[\r\n])*?\?>
Just append ? to the *.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论