Hi, I have the following html code and need to extract only the piece after the rvo_model - so in this case MFC5860CNU1 <script type="text/javascript"> rvo_retailer_ref='msc'; rvo_manufacturer='Brother'; rvo_model='MFC5860CNU1'; rvo_format='image_horizontal310x70'; </script> HTML: I am sure I will need to use Regex but as I am only just learning about PHP and Regex this is too complicated for me at present. Can someone else help please? Thanks
Hey I wrote that for you and it works! <?php $text = "<script type=\"text/javascript\"> rvo_retailer_ref='msc'; rvo_manufacturer='Brother'; rvo_model='MFC5860CNU1'; rvo_format='image_horizontal310x70'; </script>"; preg_match("/rvo_model=\'(.*)\'/", $text, $matches); echo $matches[1]; ?> PHP: org