Regex ignore matches between [removed] tags

后端 未结 4 1355
我在风中等你
我在风中等你 2020-12-22 11:52

I apologise as I have very little knowledge about Regex and I don\'t even understand exactly what this regex is doing (I didn\'t write it - source) apart from the fact it se

4条回答
  •  青春惊慌失措
    2020-12-22 12:15

    You mentioned in a comment that it would be acceptable to remove script tags before performing the search.

    $data = preg_replace('/<\s*script.*?\/script\s*>/iu', '', $data);
    

    This code may help with that.

提交回复
热议问题