There is an array in php, you need to pull everything that is between ()

Tried it like this, but something didn't help. Array example

<script type="text/javascript">var obbx_117848907_44771=new JCCatalogElement(какие-то символы которые надо вытащить);</script> 

Here I tried this regular season

 preg_match_all('/script\((.*)\)\;/script', $catsHTML, $new_price_block); 

    1 answer 1

     $catsHTML = '<script type="text/javascript">var obbx_117848907_44771=new JCCatalogElement(какие-то символы которые надо вытащить);</script>'; preg_match_all('/<script.+\((.*)\)/', $catsHTML, $new_price_block); print_r($new_price_block[1]);