I have a JavaScript and I must to use regex to extract my wanted parts with php.
my javascript is:
gabjoorblock += '<div class="ganjoor-poem-block">';
gabjoorblock += '<div class="ganjoor-m1">یونیکد</div>';
I try this code to retrieve "یونیکد"
but it don't work:
The code should be this:
$regex = '/<div class="ganjoor-m1">(.+?)<\/div>/s';
please help me.